Class Packet20NamedEntitySpawn_b1_4
- java.lang.Object
-
- net.minecraft.src.Packet
-
- net.minecraft.packettrans.TranslationPacket
-
- net.minecraft.packettrans.protocol_b1_4.Packet20NamedEntitySpawn_b1_4
-
public class Packet20NamedEntitySpawn_b1_4 extends TranslationPacket
-
-
Field Summary
Fields Modifier and Type Field Description int
currentItem
The current item the player is holding.int
entityId
The entity ID, in this case it's the player ID.java.lang.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.-
Fields inherited from class net.minecraft.src.Packet
creationTimeMillis, field_48155_p, field_48156_n, field_48157_o, field_48158_m, isChunkDataPacket, packetClassToIdMap, packetIdToClassMap
-
-
Constructor Summary
Constructors Constructor Description Packet20NamedEntitySpawn_b1_4()
Packet20NamedEntitySpawn_b1_4(Player var1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPacketSize()
Abstract.void
readPacketData(java.io.DataInputStream var1)
Abstract.void
writePacketData(java.io.DataOutputStream var1)
Abstract.-
Methods inherited from class net.minecraft.packettrans.TranslationPacket
processPacket
-
Methods inherited from class net.minecraft.src.Packet
getNewPacket, getNewPacket, getPacketId, readItemStack, readNBTTagCompound, readPacket, readString, writeItemStack, writeNBTTagCompound, writePacket, writeString
-
-
-
-
Field Detail
-
entityId
public int entityId
The entity ID, in this case it's the player ID.
-
name
public java.lang.String name
The player's name.
-
xPosition
public int xPosition
The player's X position.
-
yPosition
public int yPosition
The player's Y position.
-
zPosition
public int zPosition
The player's Z position.
-
rotation
public byte rotation
The player's rotation.
-
pitch
public byte pitch
The player's pitch.
-
currentItem
public int currentItem
The current item the player is holding.
-
-
Constructor Detail
-
Packet20NamedEntitySpawn_b1_4
public Packet20NamedEntitySpawn_b1_4()
-
Packet20NamedEntitySpawn_b1_4
public Packet20NamedEntitySpawn_b1_4(Player var1)
-
-
Method Detail
-
readPacketData
public void readPacketData(java.io.DataInputStream var1) throws java.io.IOException
Abstract. Reads the raw packet data from the data stream.- Specified by:
readPacketData
in classPacket
- Throws:
java.io.IOException
-
writePacketData
public void writePacketData(java.io.DataOutputStream var1) throws java.io.IOException
Abstract. Writes the raw packet data to the data stream.- Specified by:
writePacketData
in classPacket
- Throws:
java.io.IOException
-
getPacketSize
public int getPacketSize()
Abstract. Return the size of the packet (not counting the header).- Specified by:
getPacketSize
in classPacket
-
-