Class ClientboundMoveEntityPacket

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

public abstract class ClientboundMoveEntityPacket extends Object implements Packet<ClientGamePacketListener>
  • Field Details

    • TRUNCATION_STEPS

      private static final double TRUNCATION_STEPS
      See Also:
      Constant Field Values
    • entityId

      protected final int entityId
    • xa

      protected final short xa
    • ya

      protected final short ya
    • za

      protected final short za
    • yRot

      protected final byte yRot
    • xRot

      protected final byte xRot
    • onGround

      protected final boolean onGround
    • hasRot

      protected final boolean hasRot
    • hasPos

      protected final boolean hasPos
  • Constructor Details

    • ClientboundMoveEntityPacket

      protected ClientboundMoveEntityPacket(int p_178988_, short p_178989_, short p_178990_, short p_178991_, byte p_178992_, byte p_178993_, boolean p_178994_, boolean p_178995_, boolean p_178996_)
  • Method Details

    • entityToPacket

      public static long entityToPacket(double p_132512_)
    • packetToEntity

      public static double packetToEntity(long p_132514_)
    • updateEntityPosition

      public Vec3 updateEntityPosition(Vec3 p_132522_)
    • packetToEntity

      public static Vec3 packetToEntity(long p_132516_, long p_132517_, long p_132518_)
    • handle

      public void handle(ClientGamePacketListener p_132528_)
      Specified by:
      handle in interface Packet<ClientGamePacketListener>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEntity

      @Nullable public Entity getEntity(Level p_132520_)
    • getXa

      public short getXa()
    • getYa

      public short getYa()
    • getZa

      public short getZa()
    • getyRot

      public byte getyRot()
    • getxRot

      public byte getxRot()
    • hasRotation

      public boolean hasRotation()
    • hasPosition

      public boolean hasPosition()
    • isOnGround

      public boolean isOnGround()