상속: extends EntityEvent, implements pocketmine\event\Cancellable
예제 #1
0
 public function setResidue($residue)
 {
     if (!$residue instanceof Block) {
         throw new \InvalidArgumentException("Eating a Block can only result in a Block residue");
     }
     parent::setResidue($residue);
 }
예제 #2
0
 public function setResidue($residue)
 {
     if (!$residue instanceof Item) {
         throw new \InvalidArgumentException("Eating an Item can only result in an Item residue");
     }
     parent::setResidue($residue);
 }