Auto Network Lib 1.12.2 (Network Message Serialization Library)

Auto Network Lib 1.12.2 (Network Message Serialization Library) for Minecraft 1.12.2

Updated: Jun 10, 2019 | 104 views |

Auto Network Lib 1.12.2 is an automatic network packet serialization library. When writing network code modders need to manually serialize and deserialize all fields in a packet. This library can do it automatically so that you don’t have to write boiler plate code. You only need to declare fields in a packet. Networking code in Minecraft is running in a separate thread from main game thread and because of this before doing anything you need to schedule task in main thread and handle everything in there. This library automatically schedules task in main thread. Out of the box this library supports serialization for following data types: int, long, float, double, boolean, Integer, Long, Float, Double, Boolean, String, NBTTagCompound, ItemStack, char, byte, short, Character, Byte, Short, BlockPos, Vec3d, Color3f. This library can automatically serialize following generic java collections: List, ArrayList, Stack, Vector, LinkedList, Set, HashSet, Map<T,K>, HashMap<T,K>. This library can automatically serialize arrays of any type but currently only one dimensional arrays supported. This library can automatically serialize supported generic collections inside of other supported generic collections. For example it can serialize following data types: HashMap<Integer, List>, List<List<List>>, HashMap<List, List>. Optimized for perfomance. Reflection is used only once on first serialization of packet after that no reflection is needed. Also it uses method handles instead of reflection to read and write data which is faster then access via reflection.



  • Automatic serialization and deserialization of fields in a network packet.
  • Automatic packet handling in main thread.
  • Built in serializers of most common data types.
  • You can add your own serializer for a type that is not supported by default.
  • Can serialize generic lists.
  • Can serialize generic sets.
  • Can serialize generic maps.
  • Can serialize java arrays.
  • Can serialize generic collection inside generic collection.
  • Can serialize any Enum.
  • Optimized for perfomance.


Minecraft Forge

How to install:

  1. Make sure you have already installed Minecraft Forge.
  2. Locate the minecraft application folder.
    • On windows open Run from the start menu, type %appdata% and click Run.
    • On mac open finder, hold down ALT and click Go then Library in the top menu bar. Open the folder Application Support and look for Minecraft.
  3. Place the mod you have just downloaded (.jar file) into the Mods folder.
  4. When you launch Minecraft and click the mods button you should now see the mod is installed.

Auto Network Lib 1.12.2 Download Links:

For Minecraft 1.12.2

Download from Server 1Download from Server 2