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 class
static class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ClientboundMoveEntityPacket
(int pEntityId, short pXa, short pYa, short pZa, byte pYRot, byte pXRot, boolean pOnGround, boolean pHasRot, boolean pHasPos) -
Method Summary
Modifier and TypeMethodDescriptionshort
getXa()
byte
getxRot()
short
getYa()
byte
getyRot()
short
getZa()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.boolean
boolean
boolean
toString()
abstract PacketType
<? extends ClientboundMoveEntityPacket> type()
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, 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:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- 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()
-