Class RabbitEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity

public class RabbitEntity extends AnimalEntity
  • Constructor Details

    • RabbitEntity

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

    • 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(Item item)
      Overrides:
      canEat in class AnimalEntity
      Returns:
      true if this is a valid item to breed with for this animal.