Class PlayerPosition

java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.PlayerPosition

public class PlayerPosition extends DefinedPacket
  • Constructor Details

    • PlayerPosition

      public PlayerPosition(double x, double y, double z, float yaw, float pitch, boolean onGround)
    • PlayerPosition

      public PlayerPosition()
  • Method Details

    • read

      public void read(io.netty.buffer.ByteBuf buf)
      Overrides:
      read in class DefinedPacket
    • write

      public void write(io.netty.buffer.ByteBuf buf)
      Overrides:
      write in class DefinedPacket
    • handle

      public void handle(AbstractPacketHandler handler) throws Exception
      Specified by:
      handle in class DefinedPacket
      Throws:
      Exception
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getYaw

      public float getYaw()
    • getPitch

      public float getPitch()
    • isOnGround

      public boolean isOnGround()
    • setX

      public void setX(double x)
    • setY

      public void setY(double y)
    • setZ

      public void setZ(double z)
    • setYaw

      public void setYaw(float yaw)
    • setPitch

      public void setPitch(float pitch)
    • setOnGround

      public void setOnGround(boolean onGround)
    • toString

      public String toString()
      Specified by:
      toString in class DefinedPacket
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class DefinedPacket
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class DefinedPacket