Class Packet

    • 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
    • Constructor Detail

      • Packet

        public Packet()
    • 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