public class CPacketPlayer extends java.lang.Object implements Packet<INetHandlerPlayServer>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | CPacketPlayer.Position | 
| static class  | CPacketPlayer.PositionRotation | 
| static class  | CPacketPlayer.Rotation | 
| 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 | 
|---|
| CPacketPlayer() | 
| CPacketPlayer(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(INetHandlerPlayServer handler) | 
| void | readPacketData(PacketBuffer buf) | 
| void | writePacketData(PacketBuffer buf) | 
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 CPacketPlayer()
public CPacketPlayer(boolean onGroundIn)
public void processPacket(INetHandlerPlayServer handler)
processPacket in interface Packet<INetHandlerPlayServer>public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData in interface Packet<INetHandlerPlayServer>java.io.IOExceptionpublic void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData in interface Packet<INetHandlerPlayServer>java.io.IOExceptionpublic 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()