public class CPlayerPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
Modifier and Type | Class and Description |
---|---|
static class |
CPlayerPacket.PositionPacket |
static class |
CPlayerPacket.PositionRotationPacket |
static class |
CPlayerPacket.RotationPacket |
Modifier and Type | Field and Description |
---|---|
protected boolean |
moving |
protected boolean |
onGround |
protected float |
pitch |
protected boolean |
rotating |
protected double |
x |
protected double |
y |
protected float |
yaw |
protected double |
z |
Constructor and Description |
---|
CPlayerPacket() |
CPlayerPacket(boolean onGroundIn) |
Modifier and Type | Method and Description |
---|---|
float |
getPitch(float defaultValue) |
double |
getX(double defaultValue) |
double |
getY(double defaultValue) |
float |
getYaw(float defaultValue) |
double |
getZ(double defaultValue) |
boolean |
isOnGround() |
void |
processPacket(IServerPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
protected double x
protected double y
protected double z
protected float yaw
protected float pitch
protected boolean onGround
protected boolean moving
protected boolean rotating
public CPlayerPacket()
public CPlayerPacket(boolean onGroundIn)
public void processPacket(IServerPlayNetHandler handler)
processPacket
in interface IPacket<IServerPlayNetHandler>
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public double getX(double defaultValue)
public double getY(double defaultValue)
public double getZ(double defaultValue)
public float getYaw(float defaultValue)
public float getPitch(float defaultValue)
public boolean isOnGround()