Class ChickenEntity


public class ChickenEntity extends AnimalEntity
  • Constructor Details

    • ChickenEntity

      public ChickenEntity(long entityId, long geyserId, EntityType entityType, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, com.nukkitx.math.vector.Vector3f rotation)
  • Method Details

    • canEat

      public boolean canEat(GeyserSession session, String javaIdentifierStripped, ItemMapping mapping)
      Overrides:
      canEat in class AnimalEntity
      javaIdentifierStripped - the stripped Java identifier of the item that is potential breeding food. For example, wheat.
      Returns:
      true if this is a valid item to breed with for this animal.