Class ClientboundTeleportEntityPacket

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

public class ClientboundTeleportEntityPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundTeleportEntityPacket

      public ClientboundTeleportEntityPacket(int id, double x, double y, double z, double deltaX, double deltaY, double deltaZ, float yaw, float pitch, boolean onGround)
    • ClientboundTeleportEntityPacket

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

      public ClientboundTeleportEntityPacket(int id, double x, double y, double z, double deltaX, double deltaY, double deltaZ, float yaw, float pitch, @NonNull @NonNull List<PositionElement> relatives, boolean onGround)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out)
      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()
    • 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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 ClientboundTeleportEntityPacket 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).
    • withOnGround

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