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
ConstructorsConstructorDescriptionEntityPositionSource(int entityId) EntityPositionSource(int entityId, float offsetY) EntityPositionSource(Optional<UUID> entityUniqueId, float offsetY) -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityPositionSourcedecodeSource(NBTCompound compound, ClientVersion version) static voidencodeSource(EntityPositionSource source, ClientVersion version, NBTCompound compound) intNote: 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.floatstatic EntityPositionSourceread(PacketWrapper<?> wrapper) voidsetEntityId(int entityId) Note: Only used when handling particles through particle packets or version is older than 1.19.voidsetEntityUniqueId(Optional<UUID> entityUniqueId) Note: Only used when handling particles through registries and version is at least 1.19.voidsetOffsetY(float offsetY) static voidwrite(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)
-