Перейти к содержимому
Mineforgian

SpaceServe Config

Simple, Kotlin centric, config api

472 загрузок2 подписчиковLGPL-3.0-onlyfabric

Обновлён 18 июня 2021 г. · опубликован 16 июня 2021 г.

SpaceServe Config API

A super simple to use api that uses kotlinx serialization and Kotlin data classes. Simply make a data class that implements IConfigure, and all the necessary methods are right there for you. Saving, loading, and resetting the config are simple and documented method calls. Custom serializers are available for Minecraft's complex types; currently available are: Block, Enchantment, Identifier, Item, Text

Add to your project

repositories {
    maven { 
        name = "Modrinth"
        url = uri("https://api.modrinth.com/maven")
    }
}

dependencies {
    // Config
    modImplementation("maven.modrinth:config:0.1.1")
    include("maven.modrinth:config:0.1.1")
}

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
0.2.0Бета1.17fabric18 июня 2021 г..jar (54 КБ)
0.1.1Бета1.17fabric16 июня 2021 г..jar (21 КБ)

Ченджлог

0.2.0Бета1.17 · 18 июня 2021 г.
+ Better config loading functionality
+ GameProfileSerializer
+ UuidSerialier
+ ItemStackSerializer
- Bug where missing config file causes crash on second load

Полная история изменений — на Modrinth.

Комментарии

Загружаем…