public function useOnEntity(Entity $entity, Entity $origin) { if ($entity instanceof Sheep || $entity instanceof Mooshroom) { $entity->sheer(); } }