public function canBeConsumedBy(Entity $entity) : bool { return $entity instanceof Player and $entity->getFood() < $entity->getMaxFood() and $this->canBeConsumed(); }