public class SPacketEntity extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Class and Description |
---|---|
static class |
SPacketEntity.S15PacketEntityRelMove |
static class |
SPacketEntity.S16PacketEntityLook |
static class |
SPacketEntity.S17PacketEntityLookMove |
Modifier and Type | Field and Description |
---|---|
protected int |
entityId |
protected boolean |
onGround |
protected byte |
pitch |
protected int |
posX |
protected int |
posY |
protected int |
posZ |
protected boolean |
rotating |
protected byte |
yaw |
Constructor and Description |
---|
SPacketEntity() |
SPacketEntity(int entityIdIn) |
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity(World worldIn) |
boolean |
getOnGround() |
byte |
getPitch() |
int |
getX() |
int |
getY() |
byte |
getYaw() |
int |
getZ() |
boolean |
isRotating() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
java.lang.String |
toString() |
void |
writePacketData(PacketBuffer buf) |
protected int entityId
protected int posX
protected int posY
protected int posZ
protected byte yaw
protected byte pitch
protected boolean onGround
protected boolean rotating
public SPacketEntity()
public SPacketEntity(int entityIdIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public java.lang.String toString()
toString
in class java.lang.Object
public int getX()
public int getY()
public int getZ()
public byte getYaw()
public byte getPitch()
public boolean isRotating()
public boolean getOnGround()