James's Config Lib 图标

James's Config Lib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.4.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/config-lib
资源信息

Minecraft 版本: 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4

平台: fabric

标签: library

资源介绍

James's config mod is a lightweight config mod for easily adding extendible configs. There are two built-in "types" of configs: Registry configs and Setting configs. Registry configs are configs which can have any amount of objects, which will all be read into the config. Each non-primitive object in a registry config needs to specify its type. On the other hand, setting configs have a set amount of objects, each of which are a certain type. Because of this, setting configs do not need to specify types.

Developer Docs- Ignore if you are a user

Depending on using maven

Adding The Repository

I am using modrinth maven to host these files (too lazy to set up a proper maven repo lol). To add it, add this to your repositories block in your build.gradle:

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

Adding the dependency

To add the dependency, add this to the dependencies block in your build.gradle:

dependencies {
    implementation(fg.deobf("maven.modrinth:config-lib:VERSION-MODLOADER"))
}

Version is the version of the lib (e.g 1.2) and loader is the loader (for fabric and quilt, this is fabric, for forge and neoforge, this is forge)

Making Your first config

To make your first config, look at the common/src/main/java/net/vakror/jamesconfig/config/example directory. this is where examples are placed.
There are examples for both registry config and setting configs.

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Eugene's Whistle & Spur

价格:0 墨喵币
下载量:0

查看详情
No CPvP Sounds

价格:0 墨喵币
下载量:0

查看详情
SMP Basics

价格:0 墨喵币
下载量:0

查看详情
simple-mod-pack

价格:0 墨喵币
下载量:0

查看详情