Class ServerboundMovePlayerPacket

java.lang.Object
net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
All Implemented Interfaces:
Packet<ServerGamePacketListener>
Direct Known Subclasses:
ServerboundMovePlayerPacket.Pos, ServerboundMovePlayerPacket.PosRot, ServerboundMovePlayerPacket.Rot, ServerboundMovePlayerPacket.StatusOnly

public abstract class ServerboundMovePlayerPacket extends Object implements Packet<ServerGamePacketListener>
  • Field Details

    • x

      protected final double x
    • y

      protected final double y
    • z

      protected final double z
    • yRot

      protected final float yRot
    • xRot

      protected final float xRot
    • onGround

      protected final boolean onGround
    • hasPos

      protected final boolean hasPos
    • hasRot

      protected final boolean hasRot
  • Constructor Details

    • ServerboundMovePlayerPacket

      protected ServerboundMovePlayerPacket(double pX, double pY, double pZ, float pYRot, float pXRot, boolean pOnGround, boolean pHasPos, boolean pHasRot)
  • Method Details

    • type

      public abstract PacketType<? extends ServerboundMovePlayerPacket> type()
      Specified by:
      type in interface Packet<ServerGamePacketListener>
    • handle

      public void handle(ServerGamePacketListener pHandler)
      Passes this Packet on to the NetHandler for processing.
      Specified by:
      handle in interface Packet<ServerGamePacketListener>
    • getX

      public double getX(double pDefaultValue)
    • getY

      public double getY(double pDefaultValue)
    • getZ

      public double getZ(double pDefaultValue)
    • getYRot

      public float getYRot(float pDefaultValue)
    • getXRot

      public float getXRot(float pDefaultValue)
    • isOnGround

      public boolean isOnGround()
    • hasPosition

      public boolean hasPosition()
    • hasRotation

      public boolean hasRotation()