entity ai classes, pigs should look around

This commit is contained in:
GameHerobrine 2022-10-20 19:30:04 +03:00
parent 6f603fcbe9
commit 8d454e5ec9
12 changed files with 206 additions and 38 deletions

View file

@ -5,6 +5,8 @@ move methods
*/
abstract class Animal extends Creature implements Ageable, Breedable{
public $parent;
public function isBaby(){
if(!isset($this->data["IsBaby"])){
$this->data["IsBaby"] = false;