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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final booleanprotected final booleanprotected final booleanprivate static final doubleprotected final shortprotected final byteprotected final shortprotected final byteprotected final short -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientboundMoveEntityPacket(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 longentityToPacket(double p_132512_) shortgetXa()bytegetxRot()shortgetYa()bytegetyRot()shortgetZa()voidhandle(ClientGamePacketListener p_132528_) booleanbooleanbooleanstatic doublepacketToEntity(long p_132514_) static Vec3packetToEntity(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, waitMethods 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:
handlein 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()
-