コード例 #1
0
ファイル: Painting.php プロジェクト: iTXTech/Genisys
 public function attack($damage, EntityDamageEvent $source)
 {
     parent::attack($damage, $source);
     if ($source->isCancelled()) {
         return false;
     }
     $this->level->addParticle(new DestroyBlockParticle($this->add(0.5), Block::get(Block::LADDER)));
     $this->kill();
 }
コード例 #2
0
ファイル: Painting.php プロジェクト: yungtechboy1/Genisys
 public function attack($damage, EntityDamageEvent $source)
 {
     parent::attack($damage, $source);
     $this->close();
 }