Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
netlib

netlib

Kotlinx Serialization for custom payloads.

360
1
Library

Compatibility

Minecraft: Java Edition

1.21.x

Platforms

Fabric
NeoForge

Supported environments

Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server
Sponsor on GitHub

Creators

Wanderia
WanderiaOrganization

Pyrrha
Pyrrha Project Head

Details

Licensed MPL-2.0
Published 9 months ago
Updated 7 months ago
DescriptionChangelogVersions

GitHub Actions Workflow Status Modrinth Version Discord

netlib

Kotlinx Serialization for Minecraft Payloads.

Features

  • Kotlinx Serialization encoder/decoder for Minecraft's FriendlyByteBuf/PacketByteBuf.
  • Abstract SerializedPayload for easy packet creation.
  • Support for both Fabric and NeoForge loaders.

Developer Usage

This project is intended to be included via Jar-in-Jar.
netlib is available on the wanderia maven.

repositories {
    maven("https://maven.wanderia.dev/releases") { name = "Wanderia" }
}
dependencies {
    // Fabric
    include("dev.wanderia:netlib-fabric:$version")
    modImplementation("dev.wanderia:netlib-fabric:$version")
    
    // NeoForge
    jarJar(implementation("dev.wanderia:netlib-neoforge")) {
        version {
            strictly("[$version,)")
            prefer("$version")
        }
    }
}

See the testmod for example usage.

Attribution

Logo icon by Iconoir which is licensed under MIT.

Modrinth is open source.

main@16c5a5a

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.