nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)

Kinecraft Serialization

Mod

Kotlin serialization for Minecraft classes

Client or server Library

4,679 downloads
6 followers

Kinecraft Serialization

https://github.com/SettingDust/kinecraft-serialization
It's a lib for (de)serializing minecraft tag(NBT), chat component, ByteBuf with any serializable objects.
Writing in kotlin and works with kotlinx.serialization
And with

  • tag serializers you can describe tags with the correct type instead of string. So that it will encode/decode with the format you are using as "real" type of the tag.

Usage

repositories {
    exclusiveContent {
        forRepository {
            maven("https://api.modrinth.com/maven") {
                name = "Modrinth"
            }
        }
        filter {
            includeGroup("maven.modrinth")
        }
    }
}

dependencies {
    val kinecraftSerializationVersion = "1.6.7"
    
    compileOnly("maven.modrinth:kinecraft-serialization:$kinecraftSerializationVersion:common")
    // Fabric Loom
    runtimeOnly("maven.modrinth:kinecraft-serialization:$kinecraftSerializationVersion:fabric")
    include("maven.modrinth:kinecraft-serialization:$kinecraftSerializationVersion")
    // NeoGradle
    runtimeOnly("maven.modrinth:kinecraft-serialization:$kinecraftSerializationVersion:neoforge")
    jarInJar("maven.modrinth:kinecraft-serialization:$kinecraftSerializationVersion")
}

MinecraftTag is for serialization between data class and Minecraft tag classes. Reading tag test and bytebuf test for more usage

External resources


Project members

settingdust

Owner


Technical information

License
MIT
Client side
optional
Server side
optional
Project ID