separated tnt class from all other ones

This commit is contained in:
GameHerobrine 2022-07-12 00:57:34 +03:00
parent 002f7f0946
commit 218dd4ffa4
10 changed files with 78 additions and 60 deletions

View file

@ -4,6 +4,7 @@ TODO:
move methods
*/
abstract class Animal extends Creature implements Ageable, Breedable{
public function isBaby(){
if(!isset($this->data["IsBaby"])){
$this->data["IsBaby"] = false;
@ -25,4 +26,12 @@ abstract class Animal extends Creature implements Ageable, Breedable{
}
parent::environmentUpdate();
}
public function getDrops(){
if($this->isBaby()){
return array(
array(AIR, 0, 0),
);
}
}
}