id = Entity::$entityCount++; $this->justCreated = true; $this->level = $level; } public function getPosition(){ return new Position($this->x, $this->y, $this->z, $this->level); } public function setVelocity(Vector3 $velocity){ $this->velocity = clone $velocity; } public function getVelocity(){ return clone $this->velocity; } public function isOnGround(){ return $this->onGround === true; } public function getLevel(){ return $this->level; } public function teleport(Position $pos){ } public function equals($object){ return $object instanceof Entity ? $object->getID() === $this->id : false; } public function getID(){ return $this->id; } } /***REM_START***/ require_once("entity/DamageableEntity.php"); require_once("entity/ProjectileSourceEntity.php"); require_once("entity/RideableEntity.php"); require_once("entity/AttachableEntity.php"); require_once("entity/ExplosiveEntity.php"); require_once("entity/ColorableEntity.php"); require_once("entity/LivingEntity.php"); require_once("entity/CreatureEntity.php"); require_once("entity/MonsterEntity.php"); require_once("entity/AgeableEntity.php"); require_once("entity/AnimalEntity.php"); require_once("entity/HumanEntity.php"); require_once("entity/ProjectileEntity.php"); require_once("entity/VehicleEntity.php"); require_once("entity/HangingEntity.php"); /***REM_END***/