Class ClientboundPlayerPositionPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundPlayerPositionPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundPlayerPositionPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private double
private float
private double
private float
private double
-
Constructor Summary
ConstructorDescriptionClientboundPlayerPositionPacket(double p_179149_, double p_179150_, double p_179151_, float p_179152_, float p_179153_, Set<ClientboundPlayerPositionPacket.RelativeArgument> p_179154_, int p_179155_, boolean p_179156_)
ClientboundPlayerPositionPacket(FriendlyByteBuf p_179158_)
-
Method Summary
Modifier and TypeMethodDescriptionint
getId()
double
getX()
float
getXRot()
double
getY()
float
getYRot()
double
getZ()
void
handle(ClientGamePacketListener p_132817_)
boolean
void
write(FriendlyByteBuf p_132820_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
x
private final double x -
y
private final double y -
z
private final double z -
yRot
private final float yRot -
xRot
private final float xRot -
relativeArguments
-
id
private final int id -
dismountVehicle
private final boolean dismountVehicle
-
-
Constructor Details
-
ClientboundPlayerPositionPacket
public ClientboundPlayerPositionPacket(double p_179149_, double p_179150_, double p_179151_, float p_179152_, float p_179153_, Set<ClientboundPlayerPositionPacket.RelativeArgument> p_179154_, int p_179155_, boolean p_179156_) -
ClientboundPlayerPositionPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getYRot
public float getYRot() -
getXRot
public float getXRot() -
getId
public int getId() -
requestDismountVehicle
public boolean requestDismountVehicle() -
getRelativeArguments
-