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>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final boolean
protected final boolean
protected final boolean
private static final double
protected final short
protected final byte
protected final short
protected final byte
protected final short
-
Constructor Summary
ModifierConstructorDescriptionprotected
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 Summary
Modifier and TypeMethodDescriptionstatic long
entityToPacket
(double p_132512_) short
getXa()
byte
getxRot()
short
getYa()
byte
getyRot()
short
getZa()
void
handle
(ClientGamePacketListener p_132528_) boolean
boolean
boolean
static double
packetToEntity
(long p_132514_) static Vec3
packetToEntity
(long p_132516_, long p_132517_, long p_132518_) toString()
updateEntityPosition
(Vec3 p_132522_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, write
-
Field Details
-
TRUNCATION_STEPS
private static final double TRUNCATION_STEPS- See Also:
-
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
-
packetToEntity
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
toString
-
getEntity
-
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()
-