Back to mods
Auto Network Lib project artwork

CurseForge · Minecraft mod

Auto Network Lib

Network message serialization library

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Auto Network Lib release should I use?

Updated 5 years ago
Latest stable file autonetworklib-1.12.2-1.0.45.jar
Game version 1.12.2
Loader Forge

Auto Network Lib autonetworklib-1.12.2-1.0.45.jar targets 1.12.2 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Auto Network Lib required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Auto Network Lib autonetworklib-1.12.2-1.0.45.jar need?

autonetworklib-1.12.2-1.0.45.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Auto Network Lib without breaking your instance.

Built for Auto Network Lib autonetworklib-1.12.2-1.0.45.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use autonetworklib-1.12.2-1.0.45.jar. It targets 1.12.2 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside autonetworklib-1.12.2-1.0.45.jar. It opens that exact file at the source.

About this project

What does Auto Network Lib add?

Auto Network Lib is an automatic network packet serialization library.

Features:

  • 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

Description

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<T>, ArrayList<T>, Stack<T>, Vector<T>, LinkedList<T>, Set<T>, HashSet<T>, 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<Integer>>, List<List<List<String>>>, HashMap<List<String>, List<Integer>> 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.

Project description from CurseForge.

Pick your setup

Auto Network Lib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Auto Network Lib versions and loaders

12 of 12 releases match

Looking for an older file? The official CurseForge project page is in Resources.