Class GeyserEntityDataTypes

java.lang.Object
org.geysermc.geyser.api.entity.data.GeyserEntityDataTypes

public final class GeyserEntityDataTypes extends Object
Contains commonly used GeyserEntityDataType constants for built-in entity metadata fields.

These data types define the structure of certain primitive or numeric metadata values that can be used for Bedrock entities. Each constant is backed by a pre-registered entity data type that can be used when reading or writing metadata through the Geyser API.

  • Field Details

    • COLOR

      public static final GeyserEntityDataType<Byte> COLOR
      Represents a single-byte value used for color types (e.g., sheep wool color).
    • VARIANT

      public static final GeyserEntityDataType<Integer> VARIANT
      Represents a numeric variant index that can be queried in resource packs.
    • WIDTH

      public static final GeyserEntityDataType<Float> WIDTH
      Represents the entity's width.
    • HEIGHT

      public static final GeyserEntityDataType<Float> HEIGHT
      Represents the entity's height.
    • VERTICAL_OFFSET

      public static final GeyserEntityDataType<Float> VERTICAL_OFFSET
      Represents the entity's vertical offset.
    • SCALE

      public static final GeyserEntityDataType<Float> SCALE
      Represents the scale multiplier.
    • HITBOXES

      public static final GeyserListEntityDataType<Hitbox> HITBOXES
      Represents custom hitboxes for entities
    • SEAT_OFFSET

      public static final GeyserEntityDataType<org.cloudburstmc.math.vector.Vector3f> SEAT_OFFSET
      Represents the entity's seat offset. Applied when mounting an entity. Note: This can get overridden when a new entity is mounted, in which case, the seat offset would need to be updated again!