Class EntityDataTypes
java.lang.Object
com.github.retrooper.packetevents.protocol.entity.data.EntityDataTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EntityDataType
<net.kyori.adventure.text.Component> static final EntityDataType
<ArmadilloState> Added with 1.20.5static final EntityDataType
<BlockFace> static final EntityDataType
<Vector3i> static final EntityDataType
<Integer> static final EntityDataType
<Boolean> static final EntityDataType
<Byte> static final EntityDataType
<Integer> Deprecated.static final EntityDataType
<ChickenVariant> Added with 1.21.5static final EntityDataType
<String> Deprecated.useADV_COMPONENT
insteadstatic final EntityDataType
<CowVariant> Added with 1.21.5static final EntityDataType
<EntityPose> static final EntityDataType
<Float> static final EntityDataType
<Integer> Deprecated.useTYPED_FROG_VARIANT
insteadstatic 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.useOPTIONAL_ADV_COMPONENT
insteadstatic final EntityDataType
<Optional<WorldBlockPosition>> static final EntityDataType
<Optional<Integer>> static final EntityDataType
<Optional<ItemStack>> static final EntityDataType
<Optional<UUID>> static final EntityDataType
<PaintingVariant> static final EntityDataType
<Integer> Deprecated.usePAINTING_VARIANT
insteadstatic final EntityDataType
<Particle<?>> static final EntityDataType
<List<Particle<?>>> Added with 1.20.5static final EntityDataType
<PigVariant> Added with 1.21.5static final EntityDataType
<Quaternion4f> static final EntityDataType
<Vector3f> static final EntityDataType
<Short> static final EntityDataType
<SnifferState> static final EntityDataType
<String> static final EntityDataType
<CatVariant> static final EntityDataType
<FrogVariant> static final EntityDataType
<WolfVariant> Added with 1.20.5static final EntityDataType
<Vector3f> static final EntityDataType
<VillagerData> static final EntityDataType
<WolfSoundVariant> Added with 1.21.5static final EntityDataType
<Integer> Deprecated.useTYPED_WOLF_VARIANT
instead -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
Z extends T>
EntityDataType<Z> define
(String name, PacketWrapper.Reader<Z> reader, PacketWrapper.Writer<T> writer) static EntityDataType
<?> getById
(ClientVersion version, int id) static EntityDataType
<?> static VersionedRegistry
<EntityDataType<?>> static Collection
<EntityDataType<?>> values()
Returns an immutable view of the entity-data types.
-
Field Details
-
BYTE
-
SHORT
-
INT
-
LONG
-
FLOAT
-
STRING
-
COMPONENT
Deprecated.useADV_COMPONENT
instead -
ADV_COMPONENT
-
OPTIONAL_COMPONENT
Deprecated.useOPTIONAL_ADV_COMPONENT
instead -
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
Deprecated.useTYPED_CAT_VARIANT
instead -
TYPED_CAT_VARIANT
-
FROG_VARIANT
Deprecated.useTYPED_FROG_VARIANT
instead -
TYPED_FROG_VARIANT
-
OPTIONAL_GLOBAL_POSITION
-
PAINTING_VARIANT_TYPE
Deprecated.usePAINTING_VARIANT
instead -
PAINTING_VARIANT
-
SNIFFER_STATE
-
VECTOR3F
-
QUATERNION
-
ARMADILLO_STATE
Added with 1.20.5 -
PARTICLES
Added with 1.20.5 -
WOLF_VARIANT
Deprecated.useTYPED_WOLF_VARIANT
insteadAdded with 1.20.5 -
TYPED_WOLF_VARIANT
Added with 1.20.5 -
COW_VARIANT
Added with 1.21.5 -
WOLF_SOUND_VARIANT
Added with 1.21.5 -
PIG_VARIANT
Added with 1.21.5 -
CHICKEN_VARIANT
Added with 1.21.5
-
-
Method Details
-
getRegistry
-
values
Returns an immutable view of the entity-data types.- Returns:
- Entity-Data Types
-
getById
-
getByName
-
define
@Internal public static <T,Z extends T> EntityDataType<Z> define(String name, PacketWrapper.Reader<Z> reader, PacketWrapper.Writer<T> writer)
-
TYPED_CAT_VARIANT
instead