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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientboundMoveEntityPacket(int pEntityId, short pXa, short pYa, short pZa, byte pYRot, byte pXRot, boolean pOnGround, boolean pHasRot, boolean pHasPos) -
Method Summary
Modifier and TypeMethodDescriptionshortgetXa()floatgetXRot()shortgetYa()floatgetYRot()shortgetZa()voidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.booleanbooleanbooleantoString()abstract PacketType<? extends ClientboundMoveEntityPacket> type()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, isTerminal
-
Field Details
-
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 pEntityId, short pXa, short pYa, short pZa, byte pYRot, byte pXRot, boolean pOnGround, boolean pHasRot, boolean pHasPos)
-
-
Method Details
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
toString
-
getEntity
-
getXa
public short getXa() -
getYa
public short getYa() -
getZa
public short getZa() -
getYRot
public float getYRot() -
getXRot
public float getXRot() -
hasRotation
public boolean hasRotation() -
hasPosition
public boolean hasPosition() -
isOnGround
public boolean isOnGround()
-