public class Packet20NamedEntitySpawn extends Packet
| Modifier and Type | Field and Description |
|---|---|
int |
currentItem
The current item the player is holding.
|
int |
entityId
The entity ID, in this case it's the player ID.
|
String |
name
The player's name.
|
byte |
pitch
The player's pitch.
|
byte |
rotation
The player's rotation.
|
int |
xPosition
The player's X position.
|
int |
yPosition
The player's Y position.
|
int |
zPosition
The player's Z position.
|
creationTimeMillis, isChunkDataPacket, packetIdToClassMap, receivedID, receivedSize, sentID, sentSize| Constructor and Description |
|---|
Packet20NamedEntitySpawn() |
Packet20NamedEntitySpawn(EntityPlayer par1EntityPlayer) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPacketSize()
Abstract.
|
List |
getWatchedMetadata() |
void |
processPacket(NetHandler par1NetHandler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(DataInputStream par1DataInputStream)
Abstract.
|
void |
writePacketData(DataOutputStream par1DataOutputStream)
Abstract.
|
addIdClassMapping, canProcessAsync, containsSameEntityIDAs, getNewPacket, getPacketId, isRealPacket, readBytesFromStream, readItemStack, readNBTTagCompound, readPacket, readString, toString, writeByteArray, writeItemStack, writePacket, writeStringpublic int entityId
public String name
public int xPosition
public int yPosition
public int zPosition
public byte rotation
public byte pitch
public int currentItem
public Packet20NamedEntitySpawn()
public Packet20NamedEntitySpawn(EntityPlayer par1EntityPlayer)
public void readPacketData(DataInputStream par1DataInputStream) throws IOException
readPacketData in class PacketIOExceptionpublic void writePacketData(DataOutputStream par1DataOutputStream) throws IOException
writePacketData in class PacketIOExceptionpublic void processPacket(NetHandler par1NetHandler)
processPacket in class Packetpublic int getPacketSize()
getPacketSize in class Packetpublic List getWatchedMetadata()