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

      @Experimental 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

      @Experimental 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

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

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

      @Experimental 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

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

      @Experimental 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

      @Experimental 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

      @Experimental 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 and happy ghasts in the vanilla game.
      Since:
      2.11.0
      See Also:
    • SEAT_LOCK_RIDER_ROTATION_DEGREES

      @Experimental public static final GeyserEntityDataType<Float> SEAT_LOCK_RIDER_ROTATION_DEGREES
      The degrees of rotation a rider may rotate within, set on the rider entity. This is used for boats and happy ghasts in the vanilla game to prevent "looking backwards" while riding it
      Since:
      2.11.0
    • SEAT_HAS_ROTATION

      @Experimental public static final GeyserEntityDataType<Boolean> SEAT_HAS_ROTATION
      Whether an entity riding another vehicle entity is sitting on a seat which has a rotation.
      Since:
      2.11.0
    • ROTATE_RIDER_DEGREES

      @Experimental 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 to make the player face forward, and is equivalent to rotate_rider_by in the minecraft:rideable entity component.
      Since:
      2.11.0
      See Also: