Class RabbitEntity


public class RabbitEntity extends AnimalEntity
  • Constructor Details

    • RabbitEntity

      public RabbitEntity(GeyserSession session, long 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

    • setBaby

      public void setBaby(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
      Overrides:
      setBaby in class AgeableEntity
    • setRabbitVariant

      public void setRabbitVariant(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • getAdultSize

      protected float getAdultSize()
      Description copied from class: AgeableEntity
      The scale that should be used when this entity is not a baby.
      Overrides:
      getAdultSize in class AgeableEntity
    • getBabySize

      protected float getBabySize()
      Description copied from class: AgeableEntity
      The scale that should be used when this entity is a baby.
      Overrides:
      getBabySize in class AgeableEntity
    • canEat

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