Beispiel #1
0
 public function initEntity()
 {
     parent::initEntity();
     if (isset($this->namedtag->Motive)) {
         $this->motive = $this->namedtag["Motive"];
     } else {
         $this->close();
     }
 }
 public function initEntity()
 {
     $this->setMaxHealth(1);
     $this->setHealth($this->getMaxHealth());
     parent::initEntity();
     if (isset($this->namedtag->Motive)) {
         $this->motive = $this->namedtag["Motive"];
     } else {
         $this->close();
     }
 }