public class CPlayerPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
CPlayerPacket.PositionPacket |
static class |
CPlayerPacket.PositionRotationPacket |
static class |
CPlayerPacket.RotationPacket |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
moving |
protected boolean |
onGround |
protected float |
pitch |
protected boolean |
rotating |
protected double |
x |
protected double |
y |
protected float |
yaw |
protected double |
z |
| コンストラクタと説明 |
|---|
CPlayerPacket() |
CPlayerPacket(boolean onGroundIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldSkipErrorsprotected 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 インタフェース内 IPacket<IServerPlayNetHandler>public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData インタフェース内 IPacket<IServerPlayNetHandler>java.io.IOExceptionpublic void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData インタフェース内 IPacket<IServerPlayNetHandler>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()