← Назад к ресурсам

Lib 39

Lib39 is a general-purpose dependency library for Minecraft mods.

Modrinth library

Описание

# A LIB ## Current Library Features - **S2C Synchronized Data System** (Not only supports Capability but also enables synchronization of more data types through DataProvider) - **I18n Language JSON Data Generation Code** based on Provider (providing more convenient language data generation) - **Compatibility Code Registration Management Class** (for easier compatibility with other mods) - **NBT Read/Write Utility Class** using a chain pattern to reduce redundant serialization/deserialization logic - **A Series of Riding Methods** for more convenient management of riding relationships ...and a range of other utility methods aimed at reducing repetitive coding tasks. ## For Developers Add the Maven repository in your `build.gradle`: ```groovy repositories { maven { name = "LTD Maven" url = "https://nexus.bot.leisuretimedock.top/repository/maven-public/" } } ``` Import the dependency: ```groovy implementation 'top.r3944realms.lib39:lib39:${version}' ``` Version examples like `1.20.1-0.0.17`: ```groovy implementation 'top.r3944realms.lib39:lib39:1.20.1-0.0.17' ``` After building, this mod can be found in the library with examples included. Click "Download Source Code" in the right-hand window to view JavaDoc annotations.