public class EntityPositionS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
id |
private boolean |
onGround |
private byte |
pitch |
private double |
x |
private double |
y |
private byte |
yaw |
private double |
z |
Constructor and Description |
---|
EntityPositionS2CPacket() |
EntityPositionS2CPacket(Entity entity) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getId() |
byte |
getPitch() |
double |
getX() |
double |
getY() |
byte |
getYaw() |
double |
getZ() |
boolean |
isOnGround() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int id
private double x
private double y
private double z
private byte yaw
private byte pitch
private boolean onGround
public EntityPositionS2CPacket()
public EntityPositionS2CPacket(Entity entity)
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 int getId()
@Environment(value=CLIENT) public double getX()
@Environment(value=CLIENT) public double getY()
@Environment(value=CLIENT) public double getZ()
@Environment(value=CLIENT) public byte getYaw()
@Environment(value=CLIENT) public byte getPitch()
@Environment(value=CLIENT) public boolean isOnGround()