Class EntityDataTypes
java.lang.Object
com.github.retrooper.packetevents.protocol.entity.data.EntityDataTypes
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EntityDataType
<net.kyori.adventure.text.Component> static final EntityDataType
<ArmadilloState> static final EntityDataType
<BlockFace> static final EntityDataType
<Vector3i> static final EntityDataType
<Integer> static final EntityDataType
<Boolean> static final EntityDataType
<Byte> static final EntityDataType
<Integer> static final EntityDataType
<String> Deprecated.static final EntityDataType
<EntityPose> static final EntityDataType
<Float> static final EntityDataType
<Integer> static final EntityDataType
<Integer> static final EntityDataType
<ItemStack> static final EntityDataType
<Long> static final EntityDataType
<NBTCompound> static final EntityDataType
<Optional<net.kyori.adventure.text.Component>> static final EntityDataType
<Optional<Vector3i>> static final EntityDataType
<Integer> static final EntityDataType
<Optional<String>> Deprecated.static final EntityDataType
<Optional<WorldBlockPosition>> static final EntityDataType
<Optional<Integer>> static final EntityDataType
<Optional<ItemStack>> static final EntityDataType
<Optional<UUID>> static final EntityDataType
<Integer> static final EntityDataType
<Particle<?>> static final EntityDataType
<List<Particle<?>>> static final EntityDataType
<Quaternion4f> static final EntityDataType
<Vector3f> static final EntityDataType
<Short> static final EntityDataType
<SnifferState> static final EntityDataType
<String> protected static final TypesBuilder
static final EntityDataType
<Vector3f> static final EntityDataType
<VillagerData> static final EntityDataType
<Integer> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> EntityDataType
<T> define
(String name, Function<PacketWrapper<?>, T> deserializer, BiConsumer<PacketWrapper<?>, T> serializer) static EntityDataType
<?> getById
(ClientVersion version, int id) static EntityDataType
<?> static Collection
<EntityDataType<?>> values()
Returns an immutable view of the entity-data types.
-
Field Details
-
TYPES_BUILDER
-
BYTE
-
SHORT
-
INT
-
LONG
-
FLOAT
-
STRING
-
COMPONENT
Deprecated. -
ADV_COMPONENT
-
OPTIONAL_COMPONENT
Deprecated. -
OPTIONAL_ADV_COMPONENT
public static final EntityDataType<Optional<net.kyori.adventure.text.Component>> OPTIONAL_ADV_COMPONENT -
ITEMSTACK
-
OPTIONAL_ITEMSTACK
-
BOOLEAN
-
ROTATION
-
BLOCK_POSITION
-
OPTIONAL_BLOCK_POSITION
-
BLOCK_FACE
-
OPTIONAL_UUID
-
BLOCK_STATE
-
OPTIONAL_BLOCK_STATE
-
NBT
-
PARTICLE
-
VILLAGER_DATA
-
OPTIONAL_INT
-
ENTITY_POSE
-
CAT_VARIANT
-
FROG_VARIANT
-
OPTIONAL_GLOBAL_POSITION
-
PAINTING_VARIANT_TYPE
-
SNIFFER_STATE
-
VECTOR3F
-
QUATERNION
-
ARMADILLO_STATE
-
PARTICLES
-
WOLF_VARIANT
-
-
Constructor Details
-
EntityDataTypes
public EntityDataTypes()
-
-
Method Details
-
values
Returns an immutable view of the entity-data types.- Returns:
- Entity-Data Types
-
getById
-
getByName
-
define
public static <T> EntityDataType<T> define(String name, Function<PacketWrapper<?>, T> deserializer, BiConsumer<PacketWrapper<?>, T> serializer)
-