Move a giant heap of network garbage out of Entity

This commit is contained in:
Dylan K. Taylor
2019-04-26 18:52:38 +01:00
parent ea8c723092
commit 854a2f5135
19 changed files with 488 additions and 339 deletions

View File

@@ -24,9 +24,11 @@ declare(strict_types=1);
namespace pocketmine\entity;
use pocketmine\network\mcpe\protocol\types\EntityMetadataFlags;
abstract class Animal extends Creature implements Ageable{
public function isBaby() : bool{
return $this->getGenericFlag(self::DATA_FLAG_BABY);
return $this->getGenericFlag(EntityMetadataFlags::BABY);
}
}