public class CatEntity extends TameableEntity
  • Constructor Details

    • CatEntity

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

    • updateRotation

      public void updateRotation(GeyserSession session, float yaw, float pitch, boolean isOnGround)
      Description copied from class: Entity
      Updates an entity's rotation. Used in JavaEntityRotationTranslator.
      Overrides:
      updateRotation in class Entity
      Parameters:
      session - GeyserSession.
      yaw - The new yaw of the entity.
      pitch - The new pitch of the entity.
      isOnGround - Whether the entity is currently on the ground.
    • updateBedrockMetadata

      public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)
      Description copied from class: Entity
      Applies the Java metadata to the local Bedrock metadata copy
      Overrides:
      updateBedrockMetadata in class TameableEntity
      Parameters:
      entityMetadata - the Java entity metadata
      session - GeyserSession
    • 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.