public class PlayerPositionLookS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
PlayerPositionLookS2CPacket.Flag |
Modifier and Type | Field and Description |
---|---|
private Set<PlayerPositionLookS2CPacket.Flag> |
flags |
private float |
pitch |
private int |
teleportId |
private double |
x |
private double |
y |
private float |
yaw |
private double |
z |
Constructor and Description |
---|
PlayerPositionLookS2CPacket() |
PlayerPositionLookS2CPacket(double x,
double y,
double z,
float yaw,
float pitch,
Set<PlayerPositionLookS2CPacket.Flag> flags,
int teleportId) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Set<PlayerPositionLookS2CPacket.Flag> |
getFlags() |
float |
getPitch() |
int |
getTeleportId() |
double |
getX() |
double |
getY() |
float |
getYaw() |
double |
getZ() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private double x
private double y
private double z
private float yaw
private float pitch
private Set<PlayerPositionLookS2CPacket.Flag> flags
private int teleportId
public PlayerPositionLookS2CPacket()
public PlayerPositionLookS2CPacket(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket.Flag> flags, int teleportId)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public double getX()
@Environment(value=CLIENT) public double getY()
@Environment(value=CLIENT) public double getZ()
@Environment(value=CLIENT) public float getYaw()
@Environment(value=CLIENT) public float getPitch()
@Environment(value=CLIENT) public int getTeleportId()
@Environment(value=CLIENT) public Set<PlayerPositionLookS2CPacket.Flag> getFlags()