Exemple #1
0
 /**
  * @param PlayerAvatar $playerAvatar
  */
 public function updated(PlayerAvatar $playerAvatar)
 {
     $this->setSkin($playerAvatar->getSkin());
     $this->setHair($playerAvatar->getHair());
     $this->setShirt($playerAvatar->getShirt());
     $this->setPants($playerAvatar->getPants());
     $this->setHat($playerAvatar->getHat());
     $this->setShoes($playerAvatar->getShoes());
     $this->setGender(!$playerAvatar->hasGender() ? Gender::MALE_VALUE : $playerAvatar->getGender()->value());
     $this->setEyes($playerAvatar->getEyes());
     $this->setBackpack($playerAvatar->getBackpack());
 }