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

    • FLAG_ON_GROUND

      private static final int FLAG_ON_GROUND
      See Also:
    • FLAG_HORIZONTAL_COLLISION

      private static final int FLAG_HORIZONTAL_COLLISION
      See Also:
    • 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
    • horizontalCollision

      protected final boolean horizontalCollision
    • hasPos

      protected final boolean hasPos
    • hasRot

      protected final boolean hasRot
  • Constructor Details

    • ServerboundMovePlayerPacket

      protected ServerboundMovePlayerPacket(double p_179675_, double p_179676_, double p_179677_, float p_179678_, float p_179679_, boolean p_179680_, boolean p_179681_, boolean p_179682_, boolean p_361185_)
  • Method Details

    • packFlags

      static int packFlags(boolean p_364286_, boolean p_362130_)
    • unpackOnGround

      static boolean unpackOnGround(int p_361325_)
    • unpackHorizontalCollision

      static boolean unpackHorizontalCollision(int p_364739_)
    • type

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

      public void handle(ServerGamePacketListener p_134138_)
      Specified by:
      handle in interface Packet<ServerGamePacketListener>
    • getX

      public double getX(double p_134130_)
    • getY

      public double getY(double p_134141_)
    • getZ

      public double getZ(double p_134147_)
    • getYRot

      public float getYRot(float p_134132_)
    • getXRot

      public float getXRot(float p_134143_)
    • isOnGround

      public boolean isOnGround()
    • horizontalCollision

      public boolean horizontalCollision()
    • hasPosition

      public boolean hasPosition()
    • hasRotation

      public boolean hasRotation()