All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity
Direct Known Subclasses:
CatEntity, ParrotEntity, WolfEntity

public abstract class TameableEntity extends AnimalEntity
  • Field Details

    • ownerBedrockId

      protected long ownerBedrockId
      Used in the interactive tag manager to track if the session player owns this entity
  • Constructor Details

    • TameableEntity

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

    • setTameableFlags

      public void setTameableFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)
    • setOwner

      public void setOwner(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<UUID>,?> entityMetadata)
    • canBeLeashed

      protected boolean canBeLeashed()
      Overrides:
      canBeLeashed in class MobEntity
    • getOwnerBedrockId

      public long getOwnerBedrockId()
      Used in the interactive tag manager to track if the session player owns this entity