Class PlayerPositionLookS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlayerPositionLookS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class PlayerPositionLookS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlayerPositionLookS2CPacket.Flag -
Field Summary
Fields Modifier and Type Field Description private Set<PlayerPositionLookS2CPacket.Flag>flagsprivate floatpitchprivate intteleportIdprivate doublexprivate doubleyprivate floatyawprivate doublez -
Constructor Summary
Constructors Constructor Description PlayerPositionLookS2CPacket()PlayerPositionLookS2CPacket(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket.Flag> flags, int teleportId) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)Set<PlayerPositionLookS2CPacket.Flag>getFlags()floatgetPitch()intgetTeleportId()doublegetX()doublegetY()floatgetYaw()doublegetZ()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
x
private double x -
y
private double y -
z
private double z -
yaw
private float yaw -
pitch
private float pitch -
flags
-
teleportId
private int teleportId
-
-
Constructor Details
-
PlayerPositionLookS2CPacket
public PlayerPositionLookS2CPacket() -
PlayerPositionLookS2CPacket
public PlayerPositionLookS2CPacket(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket.Flag> flags, int teleportId)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getX
@Environment(CLIENT) public double getX() -
getY
@Environment(CLIENT) public double getY() -
getZ
@Environment(CLIENT) public double getZ() -
getYaw
@Environment(CLIENT) public float getYaw() -
getPitch
@Environment(CLIENT) public float getPitch() -
getTeleportId
@Environment(CLIENT) public int getTeleportId() -
getFlags
-