MCStructs

June 30, 2024 ยท View on GitHub

A minecraft data structure library with the goal of being compliant with the vanilla client.
MCStructs is designed to have an open API, allowing for easy modification of internal structures.

Modules

ModuleDescriptionSupport Versions
allGradle module with all modules except data
converterA reimplementation of codecs1.20.3 - 1.21
coreSome util classes usually needed by other modules*
dataDumps of game data mainly used for inventories1.7
itemcomponentsItem component implementations with serialization1.20.5 - 1.21
nbtGeneral purpose nbt implementation*
snbtString Nbt parser for every version with snbt1.7 - 1.21
textImplementation of all text components1.6 - 1.21

Releases

Gradle/Maven

To use MCStructs with Gradle/Maven you can follow the instructions on maven central.
Gradle Template:

repositories {
    mavenCentral()
}

dependencies {
    implementation "net.lenni0451.mcstructs:all:x.x.x"
}

You should check maven central for the latest version.

Jar File

You can download the jar files for all modules from my Jenkins server.
Module dependencies are not included in the jar files. You have to add them yourself.

Usage

Check the wiki for more information.