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)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
java.lang.String |
toString() |
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
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.IOExceptionpublic void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData in interface Packet<INetHandlerPlayClient>java.io.IOExceptionpublic void processPacket(INetHandlerPlayClient handler)
processPacket in interface Packet<INetHandlerPlayClient>public java.lang.String toString()
toString in class java.lang.Objectpublic int getX()
public int getY()
public int getZ()
public byte getYaw()
public byte getPitch()
public boolean isRotating()
public boolean getOnGround()