java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.player.ClientboundPlayerPositionPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundPlayerPositionPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundPlayerPositionPacket

      public ClientboundPlayerPositionPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper)
    • ClientboundPlayerPositionPacket

      public ClientboundPlayerPositionPacket(int id, double posX, double posY, double posZ, double deltaX, double deltaY, double deltaZ, float yRot, float xRot, @NonNull @NonNull List<PositionElement> relatives)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper)
      Specified by:
      serialize in interface MinecraftPacket
    • getId

      public int getId()
    • getPosX

      public double getPosX()
    • getPosY

      public double getPosY()
    • getPosZ

      public double getPosZ()
    • getDeltaX

      public double getDeltaX()
    • getDeltaY

      public double getDeltaY()
    • getDeltaZ

      public double getDeltaZ()
    • getYRot

      public float getYRot()
    • getXRot

      public float getXRot()
    • getRelatives

      @NonNull public @NonNull List<PositionElement> getRelatives()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withId

      public @NonNull ClientboundPlayerPositionPacket withId(int id)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPosX

      public @NonNull ClientboundPlayerPositionPacket withPosX(double posX)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPosY

      public @NonNull ClientboundPlayerPositionPacket withPosY(double posY)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPosZ

      public @NonNull ClientboundPlayerPositionPacket withPosZ(double posZ)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDeltaX

      public @NonNull ClientboundPlayerPositionPacket withDeltaX(double deltaX)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDeltaY

      public @NonNull ClientboundPlayerPositionPacket withDeltaY(double deltaY)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDeltaZ

      public @NonNull ClientboundPlayerPositionPacket withDeltaZ(double deltaZ)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withYRot

      public @NonNull ClientboundPlayerPositionPacket withYRot(float yRot)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withXRot

      public @NonNull ClientboundPlayerPositionPacket withXRot(float xRot)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRelatives

      public @NonNull ClientboundPlayerPositionPacket withRelatives(@NonNull @NonNull List<PositionElement> relatives)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).