简单配置 API [已停用]

简单配置 API [已停用]

我的模组的简易配置API。

基础库

Simple Config API

一个基于 NightConfig Library 的适用于 Fabric、Quilt 和 Neo/-Forge 的简单配置 API。 可在 Curseforge 和 Modrinth 上下载。

功能

  • 保存 Integer、Double String 和 Boolean 值
    • 将它们保存在分类中
    • 为分类或值设置注释
    • 值可在范围内定义
  • 为多加载器项目设计,但也可用于单加载器项目。
  • 自动修正无效或损坏的配置条目

计划

  • 支持更多数据类型

面向开发者

最新版本:0.3.0

适用于:

  • Fabric 1.20 -> 1.20.4
  • Forge 1.20 -> 1.20.4
  • NeoForge 1.20.1 -> 1.20.4
将 Simple Config API 添加到你的项目
    repositories {
        maven {
          name = "xStopho Mods"
          url = "https://raw.githubusercontent.com/Stein-N/resources/main/maven"
        }
    }
    dependencies {
        implementation "xstopho.simpleconfigapi:simpleconfigapi-common:<version>"
        implementation "xstopho.simpleconfigapi:simpleconfigapi-fabric:<version>"
        implementation "xstopho.simpleconfigapi:simpleconfigapi-forge:<version>"
        implementation "xstopho.simpleconfigapi:simpleconfigapi-neoforge:<version>"
    }