Package net.minecraft.src
Class Packet
- java.lang.Object
-
- net.minecraft.src.Packet
-
- Direct Known Subclasses:
Packet0KeepAlive
,Packet100OpenWindow
,Packet101CloseWindow
,Packet102WindowClick
,Packet103SetSlot
,Packet104WindowItems
,Packet105UpdateProgressbar
,Packet106Transaction
,Packet107CreativeSetSlot
,Packet108EnchantItem
,Packet10Flying
,Packet130UpdateSign
,Packet131MapData
,Packet132TileEntityData
,Packet14BlockDig
,Packet15Place
,Packet16BlockItemSwitch
,Packet17Sleep
,Packet18Animation
,Packet19EntityAction
,Packet1Login
,Packet1Login_1_1
,Packet200Statistic
,Packet201PlayerInfo
,Packet202PlayerAbilities
,Packet20NamedEntitySpawn
,Packet21PickupSpawn
,Packet22Collect
,Packet23VehicleSpawn
,Packet24MobSpawn
,Packet250CustomPayload
,Packet254ServerPing
,Packet255KickDisconnect
,Packet25EntityPainting
,Packet26EntityExpOrb
,Packet28EntityVelocity
,Packet29DestroyEntity
,Packet2Handshake
,Packet30Entity
,Packet34EntityTeleport
,Packet35EntityHeadRotation
,Packet38EntityStatus
,Packet39AttachEntity
,Packet3Chat
,Packet40EntityMetadata
,Packet41EntityEffect
,Packet42RemoveEntityEffect
,Packet43Experience
,Packet4UpdateTime
,Packet50PreChunk
,Packet51MapChunk
,Packet52MultiBlockChange
,Packet53BlockChange
,Packet54PlayNoteBlock
,Packet5PlayerInventory
,Packet60Explosion
,Packet61DoorChange
,Packet6SpawnPosition
,Packet70Bed
,Packet71Weather
,Packet7UseEntity
,Packet8UpdateHealth
,Packet9Respawn
,Packet9Respawn_1_1
,TranslationPacket
public abstract class Packet extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description long
creationTimeMillis
static long
field_48155_p
static long
field_48156_n
static long
field_48157_o
static long
field_48158_m
boolean
isChunkDataPacket
static java.util.Map
packetClassToIdMap
static it.unimi.dsi.fastutil.ints.Int2ObjectMap<java.lang.Class<? extends Packet>>
packetIdToClassMap
-
Constructor Summary
Constructors Constructor Description Packet()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Packet
getNewPacket(int var0)
static Packet
getNewPacket(int var0, java.lang.Class class1)
int
getPacketId()
abstract int
getPacketSize()
abstract void
processPacket(NetHandler nethandler)
protected ItemStack
readItemStack(java.io.DataInputStream var1)
protected NBTTagCompound
readNBTTagCompound(java.io.DataInputStream var1)
static Packet
readPacket(java.io.DataInputStream var0, boolean var1, int protocolVersion)
abstract void
readPacketData(java.io.DataInputStream datainputstream)
static java.lang.String
readString(java.io.DataInputStream var0, int var1)
protected void
writeItemStack(ItemStack var1, java.io.DataOutputStream var2)
protected void
writeNBTTagCompound(NBTTagCompound var1, java.io.DataOutputStream var2)
static void
writePacket(Packet var0, java.io.DataOutputStream var1)
abstract void
writePacketData(java.io.DataOutputStream dataoutputstream)
static void
writeString(java.lang.String var0, java.io.DataOutputStream var1)
-
-
-
Field Detail
-
packetIdToClassMap
public static it.unimi.dsi.fastutil.ints.Int2ObjectMap<java.lang.Class<? extends Packet>> packetIdToClassMap
-
packetClassToIdMap
public static java.util.Map packetClassToIdMap
-
creationTimeMillis
public final long creationTimeMillis
-
field_48158_m
public static long field_48158_m
-
field_48156_n
public static long field_48156_n
-
field_48157_o
public static long field_48157_o
-
field_48155_p
public static long field_48155_p
-
isChunkDataPacket
public boolean isChunkDataPacket
-
-
Method Detail
-
getNewPacket
public static Packet getNewPacket(int var0)
-
getNewPacket
public static Packet getNewPacket(int var0, java.lang.Class class1)
-
getPacketId
public final int getPacketId()
-
readPacket
public static Packet readPacket(java.io.DataInputStream var0, boolean var1, int protocolVersion) throws java.io.IOException
- Throws:
java.io.IOException
-
writePacket
public static void writePacket(Packet var0, java.io.DataOutputStream var1) throws java.io.IOException
- Throws:
java.io.IOException
-
writeString
public static void writeString(java.lang.String var0, java.io.DataOutputStream var1) throws java.io.IOException
- Throws:
java.io.IOException
-
readString
public static java.lang.String readString(java.io.DataInputStream var0, int var1) throws java.io.IOException
- Throws:
java.io.IOException
-
readPacketData
public abstract void readPacketData(java.io.DataInputStream datainputstream) throws java.io.IOException
- Throws:
java.io.IOException
-
writePacketData
public abstract void writePacketData(java.io.DataOutputStream dataoutputstream) throws java.io.IOException
- Throws:
java.io.IOException
-
processPacket
public abstract void processPacket(NetHandler nethandler)
-
getPacketSize
public abstract int getPacketSize()
-
readItemStack
protected ItemStack readItemStack(java.io.DataInputStream var1) throws java.io.IOException
- Throws:
java.io.IOException
-
writeItemStack
protected void writeItemStack(ItemStack var1, java.io.DataOutputStream var2) throws java.io.IOException
- Throws:
java.io.IOException
-
readNBTTagCompound
protected NBTTagCompound readNBTTagCompound(java.io.DataInputStream var1) throws java.io.IOException
- Throws:
java.io.IOException
-
writeNBTTagCompound
protected void writeNBTTagCompound(NBTTagCompound var1, java.io.DataOutputStream var2) throws java.io.IOException
- Throws:
java.io.IOException
-
-