mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
separated tnt class from all other ones
This commit is contained in:
parent
002f7f0946
commit
218dd4ffa4
10 changed files with 78 additions and 60 deletions
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue