Class ClientboundMoveEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundMoveEntityPacket
- All Implemented Interfaces:
MovementPacket<ClientGamePacketListener>, Packet<ClientGamePacketListener>
- Direct Known Subclasses:
ClientboundMoveEntityPacket.Pos, ClientboundMoveEntityPacket.PosRot, ClientboundMoveEntityPacket.Rot
public abstract class ClientboundMoveEntityPacket
extends Object
implements MovementPacket<ClientGamePacketListener>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final VecDeltaprotected final intprotected final booleanprotected final booleanprivate static final intprotected final booleanprivate static final intprotected final byteprotected final byte -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientboundMoveEntityPacket(int entityId, VecDelta delta, byte yRot, byte xRot, boolean onGround, boolean hasRot, boolean hasPos) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetXRot()floatgetYRot()voidhandle(ClientGamePacketListener listener) booleanbooleanbooleanprotected static intpackProperties(boolean onGround, int stepCount) toString()abstract PacketType<? extends ClientboundMoveEntityPacket> type()protected static booleanunpackOnGround(int properties) protected static intunpackStepCount(int properties) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
ON_GROUND_FLAG
private static final int ON_GROUND_FLAG- See Also:
-
STEP_COUNT_OFFSET
private static final int STEP_COUNT_OFFSET- See Also:
-
entityId
protected final int entityId -
delta
-
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 entityId, VecDelta delta, byte yRot, byte xRot, boolean onGround, boolean hasRot, boolean hasPos)
-
-
Method Details
-
unpackOnGround
protected static boolean unpackOnGround(int properties) -
unpackStepCount
protected static int unpackStepCount(int properties) -
packProperties
protected static int packProperties(boolean onGround, int stepCount) -
type
- Specified by:
typein interfaceMovementPacket<ClientGamePacketListener>- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
toString
-
getEntity
-
getPositionDelta
-
getYRot
public float getYRot() -
getXRot
public float getXRot() -
hasRotation
public boolean hasRotation()- Specified by:
hasRotationin interfaceMovementPacket<ClientGamePacketListener>
-
hasPosition
public boolean hasPosition()- Specified by:
hasPositionin interfaceMovementPacket<ClientGamePacketListener>
-
isOnGround
public boolean isOnGround()
-