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(int id, double x, double y, double z, double deltaX, double deltaY, double deltaZ, float yaw, float pitch)
    • ClientboundPlayerPositionPacket

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

      public ClientboundPlayerPositionPacket(int id, double x, double y, double z, double deltaX, double deltaY, double deltaZ, float yaw, float pitch, @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()
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getDeltaX

      public double getDeltaX()
    • getDeltaY

      public double getDeltaY()
    • getDeltaZ

      public double getDeltaZ()
    • getYaw

      public float getYaw()
    • getPitch

      public float getPitch()
    • 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).
    • withX

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

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

      public @NonNull ClientboundPlayerPositionPacket withZ(double z)
      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).
    • withYaw

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

      public @NonNull ClientboundPlayerPositionPacket withPitch(float pitch)
      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).