Class GeyserEntityDataTypes

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

@Experimental public final class GeyserEntityDataTypes extends Object
Contains GeyserEntityDataType types which can be used to change the current value stored for a specific entity data type.
Since:
2.11.0
  • Field Details

    • COLOR

      public static final GeyserEntityDataType<Byte> COLOR
      Represents a single-byte value used for the main color, ranged 0 to 15.
      Since:
      2.11.0
      See Also:
    • VARIANT

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

      public static final GeyserEntityDataType<Float> WIDTH
      Represents the entity's collision box width.
      Since:
      2.11.0
      See Also:
    • HEIGHT

      public static final GeyserEntityDataType<Float> HEIGHT
      Represents the entity's collision box height.
      Since:
      2.11.0
      See Also:
    • VERTICAL_OFFSET

      public static final GeyserEntityDataType<Float> VERTICAL_OFFSET
      Represents the entity's vertical offset applied on top of the Java position sent by the server. Some entities, such as players, boats, and minecarts need such an offset to be displayed in the correct position.
      Since:
      2.11.0
    • SCALE

      public static final GeyserEntityDataType<Float> SCALE
      Represents the scale multiplier for visual size.
      Since:
      2.11.0
      See Also:
    • HITBOXES

      public static final GeyserListEntityDataType<Hitbox> HITBOXES
      Represents custom hitboxes for entities, or an empty list if none are set. To set no hitbox, update hitboxes to an empty list. To restore default behavior, update it to null.
      Since:
      2.11.0
      See Also:
    • SEAT_OFFSET

      public static final GeyserEntityDataType<org.cloudburstmc.math.vector.Vector3f> SEAT_OFFSET
      Represents the entity's seat offset, which is used when riding another entity. Equivalent to "seats" in the minecraft:rideable entity component, but set on the rider instead of the vehicle.
      Since:
      2.11.0
      See Also:
    • ROTATION_LOCKED_TO_VEHICLE

      public static final GeyserEntityDataType<Boolean> ROTATION_LOCKED_TO_VEHICLE
      Whether the entity's rotation is locked to the vehicle it is riding. This is used for boats or happy ghasts in the vanilla game.
      Since:
      2.11.0
      See Also:
    • SEAT_LOCK_RIDER_ROTATION_DEGREES

      public static final GeyserEntityDataType<Float> SEAT_LOCK_RIDER_ROTATION_DEGREES
      The degrees of rotation the seat is locked to the rider's rotation. This is used for boats or happy ghasts in the vanilla game. todo: document / test properly, possible combine with seat_has_rotation below
      Since:
      2.11.0
    • SEAT_HAS_ROTATION

      public static final GeyserEntityDataType<Boolean> SEAT_HAS_ROTATION
      todo: document
      Since:
      2.11.0
    • ROTATE_RIDER_DEGREES

      public static final GeyserEntityDataType<Float> ROTATE_RIDER_DEGREES
      The degrees of rotation that this seat is offset by. Equivalent to "rotate_rider_by" in the minecraft:rideable entity component. This is used for boats, and is equivalent to rotate_rider_by in the minecraft:rideable entity component.
      Since:
      2.11.0
      See Also: