Class ClientboundEntityPositionSyncPacket

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

public class ClientboundEntityPositionSyncPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundEntityPositionSyncPacket

      public ClientboundEntityPositionSyncPacket(io.netty.buffer.ByteBuf in)
    • ClientboundEntityPositionSyncPacket

      public ClientboundEntityPositionSyncPacket(int id, boolean isStepped, @Nullable org.cloudburstmc.math.vector.Vector3d endPosition, @Nullable List<ClientboundEntityPositionSyncPacket.PositionStep> steps, float yaw, float pitch, boolean onGround)
  • Method Details

    • serialize

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

      public int getId()
    • isStepped

      public boolean isStepped()
    • getEndPosition

      public @Nullable org.cloudburstmc.math.vector.Vector3d getEndPosition()
    • getSteps

    • getYaw

      public float getYaw()
    • getPitch

      public float getPitch()
    • isOnGround

      public boolean isOnGround()
    • 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 ClientboundEntityPositionSyncPacket withId(int id)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStepped

      public @NonNull ClientboundEntityPositionSyncPacket withStepped(boolean isStepped)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withEndPosition

      public @NonNull ClientboundEntityPositionSyncPacket withEndPosition(@Nullable org.cloudburstmc.math.vector.Vector3d endPosition)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSteps

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withYaw

      public @NonNull ClientboundEntityPositionSyncPacket 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 ClientboundEntityPositionSyncPacket withPitch(float pitch)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOnGround

      public @NonNull ClientboundEntityPositionSyncPacket withOnGround(boolean onGround)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).