java.lang.Object
com.github.retrooper.packetevents.protocol.world.positionsource.PositionSource
com.github.retrooper.packetevents.protocol.world.positionsource.builtin.EntityPositionSource

public class EntityPositionSource extends PositionSource
  • Constructor Details

    • EntityPositionSource

      public EntityPositionSource(int entityId)
    • EntityPositionSource

      public EntityPositionSource(int entityId, float offsetY)
    • EntityPositionSource

      public EntityPositionSource(Optional<UUID> entityUniqueId, float offsetY)
  • Method Details

    • read

      public static EntityPositionSource read(PacketWrapper<?> wrapper)
    • write

      public static void write(PacketWrapper<?> wrapper, EntityPositionSource source)
    • decodeSource

      public static EntityPositionSource decodeSource(NBTCompound compound, ClientVersion version)
    • encodeSource

      public static void encodeSource(EntityPositionSource source, ClientVersion version, NBTCompound compound)
    • getEntityUniqueId

      public Optional<UUID> getEntityUniqueId()
      Note: Only used when handling particles through registries and version is at least 1.19.
    • setEntityUniqueId

      public void setEntityUniqueId(Optional<UUID> entityUniqueId)
      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)