Class AgeableEntity

Direct Known Subclasses:
AbstractMerchantEntity, AnimalEntity

public class AgeableEntity extends CreatureEntity
  • Constructor Details

    • AgeableEntity

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

    • initializeMetadata

      protected void initializeMetadata()
      Description copied from class: Entity
      Called on entity spawn. Used to populate the entity metadata and flags with default values.
      Overrides:
      initializeMetadata in class MobEntity
    • setBaby

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

      protected float getAdultSize()
      The scale that should be used when this entity is not a baby.
    • getBabySize

      protected float getBabySize()
      The scale that should be used when this entity is a baby.
    • isBaby

      public boolean isBaby()