Class WrapperPlayServerPlayerPositionAndLook

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayServerPlayerPositionAndLook>
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerPositionAndLook

public class WrapperPlayServerPlayerPositionAndLook extends PacketWrapper<WrapperPlayServerPlayerPositionAndLook>
Teleporting a player directly with packets will cause issues on most server implementations and is discouraged!
  • Constructor Details

    • WrapperPlayServerPlayerPositionAndLook

      public WrapperPlayServerPlayerPositionAndLook(PacketSendEvent event)
    • WrapperPlayServerPlayerPositionAndLook

      public WrapperPlayServerPlayerPositionAndLook(double x, double y, double z, float yaw, float pitch, byte flags, int teleportId, boolean dismountVehicle)
    • WrapperPlayServerPlayerPositionAndLook

      public WrapperPlayServerPlayerPositionAndLook(Vector3d position, float yaw, float pitch, byte flags, int teleportId, boolean dismountVehicle)
    • WrapperPlayServerPlayerPositionAndLook

      public WrapperPlayServerPlayerPositionAndLook(Vector3d position, float yaw, float pitch, byte flags, int teleportId)
    • WrapperPlayServerPlayerPositionAndLook

      public WrapperPlayServerPlayerPositionAndLook(int teleportId, Vector3d position, Vector3d deltaMovement, float yaw, float pitch, byte flags)
    • WrapperPlayServerPlayerPositionAndLook

      public WrapperPlayServerPlayerPositionAndLook(int teleportId, Vector3d position, Vector3d deltaMovement, float yaw, float pitch, RelativeFlag flags)
    • WrapperPlayServerPlayerPositionAndLook

      public WrapperPlayServerPlayerPositionAndLook(int teleportId, EntityPositionData values, RelativeFlag flags)
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayServerPlayerPositionAndLook>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayServerPlayerPositionAndLook>
    • copy

      public void copy(WrapperPlayServerPlayerPositionAndLook wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayServerPlayerPositionAndLook>
    • getTeleportId

      public int getTeleportId()
    • setTeleportId

      public void setTeleportId(int teleportId)
    • getValues

      public EntityPositionData getValues()
    • setValues

      public void setValues(EntityPositionData values)
    • getPosition

      public Vector3d getPosition()
    • setPosition

      public void setPosition(Vector3d position)
    • getX

      public double getX()
    • setX

      public void setX(double x)
    • getY

      public double getY()
    • setY

      public void setY(double y)
    • getZ

      public double getZ()
    • setZ

      public void setZ(double z)
    • getDeltaMovement

      public Vector3d getDeltaMovement()
    • setDeltaMovement

      public void setDeltaMovement(Vector3d deltaMovement)
    • getYaw

      public float getYaw()
    • setYaw

      public void setYaw(float yaw)
    • getPitch

      public float getPitch()
    • setPitch

      public void setPitch(float pitch)
    • getRelativeMask

      @Deprecated public byte getRelativeMask()
      Deprecated.
      The mask no longer fits in a byte since 1.21.2
    • setRelativeMask

      @Deprecated public void setRelativeMask(byte relativeMask)
      Deprecated.
      The mask no longer fits in a byte since 1.21.2
    • isRelativeFlag

      public boolean isRelativeFlag(RelativeFlag flag)
    • setRelative

      public void setRelative(RelativeFlag flag, boolean relative)
    • getRelativeFlags

      public RelativeFlag getRelativeFlags()
    • setRelativeFlags

      public void setRelativeFlags(RelativeFlag flags)
    • isDismountVehicle

      @Obsolete public boolean isDismountVehicle()
      Removed with 1.19.3
    • setDismountVehicle

      @Obsolete public void setDismountVehicle(boolean dismountVehicle)
      Removed with 1.19.3