mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
animal breeding added
This commit is contained in:
parent
426728342f
commit
ffd5fa738c
9 changed files with 135 additions and 36 deletions
|
|
@ -28,12 +28,16 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
|
|||
return $this->path != null;
|
||||
}
|
||||
public function eatGrass(){}
|
||||
public function __destruct()
|
||||
{
|
||||
parent::__destruct();
|
||||
|
||||
public function close(){
|
||||
parent::close();
|
||||
unset($this->pathFollower->entity);
|
||||
unset($this->ai->entity);
|
||||
unset($this->ai->mobController->entity);
|
||||
unset($this->ai);
|
||||
unset($this->parent);
|
||||
}
|
||||
|
||||
public function canBeShot(){
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue