Class GeyserEntityDataTypes
java.lang.Object
org.geysermc.geyser.api.entity.data.GeyserEntityDataTypes
Contains
GeyserEntityDataType types which can be used to change the
current value stored for a specific entity data type.- Since:
- 2.11.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeyserEntityDataType<Byte> Represents a single-byte value used for the main color, ranged 0 to 15.static final GeyserEntityDataType<Float> Represents the entity's collision box height.static final GeyserListEntityDataType<Hitbox> Represents custom hitboxes for entities, or an empty list if none are set.static final GeyserEntityDataType<Float> The degrees of rotation that this seat is offset by.static final GeyserEntityDataType<Boolean> Whether the entity's rotation is locked to the vehicle it is riding.static final GeyserEntityDataType<Float> Represents the scale multiplier for visual size.static final GeyserEntityDataType<Boolean> Whether an entity riding another vehicle entity is sitting on a seat which has a rotation.static final GeyserEntityDataType<Float> The degrees of rotation a rider may rotate within, set on the rider entity.static final GeyserEntityDataType<org.cloudburstmc.math.vector.Vector3f> Represents the entity's seat offset, which is used when riding another entity.static final GeyserEntityDataType<Integer> Represents a numeric variant index that can be queried in resource packs.static final GeyserEntityDataType<Float> Represents the entity's vertical offset applied on top of the Java position sent by the server.static final GeyserEntityDataType<Float> Represents the entity's collision box width. -
Method Summary
-
Field Details
-
COLOR
Represents a single-byte value used for the main color, ranged 0 to 15.- Since:
- 2.11.0
- See Also:
-
VARIANT
Represents a numeric variant index that can be queried in resource packs.- Since:
- 2.11.0
- See Also:
-
WIDTH
Represents the entity's collision box width.- Since:
- 2.11.0
- See Also:
-
HEIGHT
Represents the entity's collision box height.- Since:
- 2.11.0
- See Also:
-
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
Represents the scale multiplier for visual size.- Since:
- 2.11.0
- See Also:
-
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_OFFSETRepresents the entity's seat offset, which is used when riding another entity. Equivalent to "seats" in theminecraft:rideableentity component, but set on the rider instead of the vehicle.- Since:
- 2.11.0
- See Also:
-
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
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
Whether an entity riding another vehicle entity is sitting on a seat which has a rotation.- Since:
- 2.11.0
-
ROTATE_RIDER_DEGREES
The degrees of rotation that this seat is offset by. Equivalent to "rotate_rider_by" in theminecraft:rideableentity component. This is used for boats to make the player face forward, and is equivalent torotate_rider_byin theminecraft:rideableentity component.- Since:
- 2.11.0
- See Also:
-