Class ServerboundMovePlayerPacket.PosRot
java.lang.Object
net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
net.minecraft.network.protocol.game.ServerboundMovePlayerPacket.PosRot
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
- Enclosing class:
ServerboundMovePlayerPacket
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
ServerboundMovePlayerPacket.Pos, ServerboundMovePlayerPacket.PosRot, ServerboundMovePlayerPacket.Rot, ServerboundMovePlayerPacket.StatusOnly -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StreamCodec<FriendlyByteBuf, ServerboundMovePlayerPacket.PosRot> Fields inherited from class net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
hasPos, hasRot, horizontalCollision, onGround, x, xRot, y, yRot, z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ServerboundMovePlayerPacket.PosRotread(FriendlyByteBuf pBuffer) type()private voidwrite(FriendlyByteBuf pBuffer) Writes the raw packet data to the data stream.Methods inherited from class net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
getX, getXRot, getY, getYRot, getZ, handle, hasPosition, hasRotation, horizontalCollision, isOnGround, packFlags, unpackHorizontalCollision, unpackOnGroundMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
-
Constructor Details
-
PosRot
-
PosRot
public PosRot(double pX, double pY, double pZ, float pYRot, float pXRot, boolean pOnGround, boolean pHorizontalCollision)
-
-
Method Details
-
read
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
typein interfacePacket<ServerGamePacketListener>- Specified by:
typein classServerboundMovePlayerPacket
-