animal breeding added

This commit is contained in:
GameHerobrine 2023-10-31 03:15:52 +03:00
parent 426728342f
commit ffd5fa738c
9 changed files with 135 additions and 36 deletions

View file

@ -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;
}