Class EntityPositionSource
java.lang.Object
com.github.retrooper.packetevents.protocol.world.positionsource.PositionSource
com.github.retrooper.packetevents.protocol.world.positionsource.builtin.EntityPositionSource
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.world.positionsource.PositionSource
type
-
Constructor Summary
ConstructorDescriptionEntityPositionSource
(int entityId) EntityPositionSource
(int entityId, float offsetY) EntityPositionSource
(Optional<UUID> entityUniqueId, float offsetY) -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityPositionSource
decodeSource
(NBTCompound compound, ClientVersion version) static void
encodeSource
(EntityPositionSource source, ClientVersion version, NBTCompound compound) int
Note: Only used when handling particles through particle packets or version is older than 1.19.Note: Only used when handling particles through registries and version is at least 1.19.float
static EntityPositionSource
read
(PacketWrapper<?> wrapper) void
setEntityId
(int entityId) Note: Only used when handling particles through particle packets or version is older than 1.19.void
setEntityUniqueId
(Optional<UUID> entityUniqueId) Note: Only used when handling particles through registries and version is at least 1.19.void
setOffsetY
(float offsetY) static void
write
(PacketWrapper<?> wrapper, EntityPositionSource source) Methods inherited from class com.github.retrooper.packetevents.protocol.world.positionsource.PositionSource
decode, encode, encode, getType
-
Constructor Details
-
EntityPositionSource
public EntityPositionSource(int entityId) -
EntityPositionSource
public EntityPositionSource(int entityId, float offsetY) -
EntityPositionSource
-
-
Method Details
-
read
-
write
-
decodeSource
-
encodeSource
public static void encodeSource(EntityPositionSource source, ClientVersion version, NBTCompound compound) -
getEntityUniqueId
Note: Only used when handling particles through registries and version is at least 1.19. -
setEntityUniqueId
Note: Only used when handling particles through registries and version is at least 1.19. -
getEntityId
public int getEntityId()Note: Only used when handling particles through particle packets or version is older than 1.19. -
setEntityId
public void setEntityId(int entityId) Note: Only used when handling particles through particle packets or version is older than 1.19. -
getOffsetY
public float getOffsetY() -
setOffsetY
public void setOffsetY(float offsetY)
-