Netlib Mod brings Kotlinx Serialization to custom Minecraft payloads as a library mod. It pairs a Kotlinx Serialization encoder and decoder for FriendlyByteBuf and PacketByteBuf with an abstract SerializedPayload class for fast packet creation. Mod projects include this library through Jar-in-Jar from the Wanderia Maven repository so custom network packets work cleanly in Minecraft.

Netlib Mod

Features:

  • Kotlinx Serialization Codec: Encodes and decodes data with Kotlinx Serialization directly for Minecraft’s FriendlyByteBuf and PacketByteBuf buffers.
  • Abstract SerializedPayload Class: Provides an abstract SerializedPayload class for quick and easy custom packet creation.
  • Packs cleanly into other mods through Jar-in-Jar bundling from the Wanderia Maven repository.
  • Runs as a shared library mod for custom Minecraft payload data across multiple mod loaders.

How to Use:

  1. Add the Wanderia Maven repository to your build script’s repositories block under the name Wanderia.
  2. Bundle this library inside your build script’s dependencies block through Jar-in-Jar packaging with the required artifact version.
  3. Set strictly and prefer version rules inside the Jar-in-Jar dependency block when your build setup requires explicit version matching.
  4. Extend the abstract SerializedPayload class to create each custom packet for your mod.
  5. Pass payload data through the Kotlinx Serialization encoder and decoder for FriendlyByteBuf and PacketByteBuf.

Netlib Mod Download Links

Filter by

For Minecraft 1.21.11, 1.21.10, 1.21.9

For Minecraft 1.21.1, 1.21

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

How often do you play pre-made modpacks instead of making your own?

23 responses · See the full results →