public function initEntity() { $this->setMaxHealth(20); parent::initEntity(); if (!isset($this->namedtag->Profession) || $this->getVariant() > 4) { $this->setVariant(mt_rand(0, 4)); } $this->setDataProperty(16, self::DATA_TYPE_BYTE, $this->getVariant()); }
public function initEntity() { $this->setMaxHealth(20); parent::initEntity(); }