static void addIdClassMapping(int var0, boolean var1, boolean var2, Class var3) {
      if(packetIdToClassMap.containsKey(Integer.valueOf(var0))) {
         throw new IllegalArgumentException("Duplicate packet id:" + var0);
      } else if(packetClassToIdMap.containsKey(var3)) {
         throw new IllegalArgumentException("Duplicate packet class:" + var3);
      } else {
         packetIdToClassMap.put(var0, var3);
         packetClassToIdMap.put(var3, var0);
         if(var1) {
            clientPacketIdList.add(var0);
         }

         if(var2) {
            serverPacketIdList.add(var0);
         }

      }
   }