public class C03PacketPlayer extends java.lang.Object implements Packet<INetHandlerPlayServer>
| 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(INetHandlerPlayServer handler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
void |
setMoving(boolean isMoving) |
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
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)
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 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)