public class C03PacketPlayer extends java.lang.Object implements Packet
Modifier and Type | Class and Description |
---|---|
static class |
C03PacketPlayer.C04PacketPlayerPosition |
static class |
C03PacketPlayer.C05PacketPlayerLook |
static class |
C03PacketPlayer.C06PacketPlayerPosLook |
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 |
---|
C03PacketPlayer() |
C03PacketPlayer(boolean isOnGround) |
Modifier and Type | Method and Description |
---|---|
float |
getPitch() |
double |
getPositionX() |
double |
getPositionY() |
double |
getPositionZ() |
boolean |
getRotating() |
float |
getYaw() |
boolean |
isMoving() |
boolean |
isOnGround() |
void |
processPacket(INetHandler handler) |
void |
processPacket(INetHandlerPlayServer handler) |
void |
readPacketData(PacketBuffer buf) |
void |
setMoving(boolean isMoving) |
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 C03PacketPlayer()
public C03PacketPlayer(boolean isOnGround)
public void processPacket(INetHandlerPlayServer handler)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet
java.io.IOException
public double getPositionX()
public double getPositionY()
public double getPositionZ()
public float getYaw()
public float getPitch()
public boolean isOnGround()
public boolean isMoving()
public boolean getRotating()
public void setMoving(boolean isMoving)
public void processPacket(INetHandler handler)
processPacket
in interface Packet