Kinecraft Serialization

Quick rating

Community listing page, reviews here may not be monitored by the author.

Kinecraft Serialization

No reviews yet

Library that adding kotlinx serialization support for Minecraft classes

Mod Loaders
Minecraft

About

Description

Kinecraft

https://github.com/SettingDust/Kinecraft
It's a lib for Kotlin in Minecraft world.
(De)Serializing minecraft tag(NBT), chat component, ByteBuf with any serializable objects.
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 kinecraftVersion = "1.6.7"

    compileOnly("maven.modrinth:kinecraft:$kinecraftVersion:common")
    // Fabric Loom
    runtimeOnly("maven.modrinth:kinecraft:$kinecraftVersion:fabric")
    include("maven.modrinth:kinecraft:$kinecraftVersion")
    // NeoGradle
    runtimeOnly("maven.modrinth:kinecraft:$kinecraftVersion:neoforge")
    jarInJar("maven.modrinth:kinecraft:$kinecraftVersion")
}

MinecraftTag is for serialization between data class and Minecraft tag classes.

Kinecraft

https://github.com/SettingDust/Kinecraft
It's a lib for Kotlin in Minecraft world.
(De)Serializing minecraft tag(NBT), chat component, ByteBuf with any serializable objects.
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 kinecraftVersion = "1.6.7"
    
    compileOnly("maven.modrinth:kinecraft:$kinecraftVersion:common")
    // Fabric Loom
    runtimeOnly("maven.modrinth:kinecraft:$kinecraftVersion:fabric")
    include("maven.modrinth:kinecraft:$kinecraftVersion")
    // NeoGradle
    runtimeOnly("maven.modrinth:kinecraft:$kinecraftVersion:neoforge")
    jarInJar("maven.modrinth:kinecraft:$kinecraftVersion")
}

MinecraftTag is for serialization between data class and Minecraft tag classes.