Class TurtleEntity

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

public class TurtleEntity extends AnimalEntity
  • Constructor Details

    • TurtleEntity

      public TurtleEntity(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

    • setPregnant

      public void setPregnant(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • setLayingEgg

      public void setLayingEgg(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • getFoodTag

      protected @Nullable Tag<Item> getFoodTag()
      Specified by:
      getFoodTag in class AnimalEntity
      Returns:
      the tag associated with this animal for eating food. Null for nothing or different behavior.
    • 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
    • canBeLeashed

      public boolean canBeLeashed()
      Specified by:
      canBeLeashed in interface Leashable
      Overrides:
      canBeLeashed in class MobEntity