Class AnimalEntity

Direct Known Subclasses:
AbstractHorseEntity, AxolotlEntity, BeeEntity, ChickenEntity, FoxEntity, GoatEntity, HoglinEntity, MooshroomEntity, OcelotEntity, PandaEntity, PigEntity, PolarBearEntity, RabbitEntity, SheepEntity, StriderEntity, TameableEntity, TurtleEntity

public class AnimalEntity extends AgeableEntity
  • Constructor Details

    • AnimalEntity

      public AnimalEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
  • Method Details

    • canEat

      public boolean canEat(String javaIdentifierStripped, ItemMapping mapping)
      Parameters:
      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.