CoreConfig 是一款现代且易于使用的配置模组,允许开发者轻松实现用户可随意更改的设置。CoreConfig 高度可定制,甚至可以拥有特定于所查看模组的装饰旗帜、按钮颜色等,使其成为新模组的可行选择。
特性
CoreConfig 为开发者提供了一系列功能:
- 支持字符串/整数/浮点数/双精度浮点数/颜色/布尔值/更多类型
- 网站按钮,可在用户浏览器中打开指定站点
- 自定义按钮,可运行任何 Runnable
- 模组特定的自定义设置(图像横幅、按钮颜色等!)
- 配置验证
- 排序与选项分隔线
- ...以及更多!
它还为用户使用 CoreConfig 模组带来了一些便利:
- 在一个菜单中修改所有支持的模组
- 界面极其简洁,易于上手
集成
要在你自己的模组中使用此模组,你可以添加 Jitpack 作为仓库,然后将我的 API 直接集成到模组中。这使得该配置模组变为可选安装,玩家无需在加载你的模组时同时下载 CoreConfig。以下是通过 Gradle 或 Maven 进行集成的方法。
如果玩家未安装 CoreConfig 模组,提供的默认值将始终被使用。
该 API 是一个普通的 Java 库,而非 Minecraft 模组库。具体实现方式可能因你使用的加载器和版本而异。未来可能会发生变化。
repositories {
mavenCentral()
}
dependencies {
implementation "io.github.pryzmm:coreconfigapi:1.0.3"
}
<dependency>
<groupId>io.github.pryzmm</groupId>
<artifactId>coreconfigapi</artifactId>
<version>1.0.3</version>
</dependency>
支持
你可以通过成为 GitHub 赞助商或在 Ko-Fi 上支持我来帮助本模组及未来版本的开发!
CoreConfig is a modern and easy-to-use configuration mod that allows developers to easily implement settings that users can change at will. CoreConfig is highly customizable and can even have decorated banners, button colors and more, specific to the viewed mod, making it a viable option for new mods.
Features
CoreConfig comes with a bunch of features for developers:
- Configuration support for Strings/Integers/Floats/Doubles/Colors/Booleans/Much More
- Website buttons to open a site in a user's browser
- Custom buttons that can run any Runnable
- Mod-specific customization (image banner, button colors, and more!)
- Configuration validation
- Sorting and option dividers
- ...and more!
It also has some perks for players using the CoreConfig mod:
- Modify all supported mods in one menu
- Extremely simplistic for ease of use with a user-friendly interface
Implementation
To use this in your own mod, you can add Jitpack as a repository, then implement my API directly into the mod. This makes having the configuration mod optional and players will not have to download CoreConfig alongside your mod. Below is how to implement it with gradle or maven.
If players do not have the CoreConfig mod installed, supplied default values will ALWAYS be used.
The API is a normal java library, NOT a minecraft mod library. Implementation may vary depending on your loader and versions. Subject to change in the future.
repositories {
mavenCentral()
}
dependencies {
implementation "io.github.pryzmm:coreconfigapi:1.0.3"
}
<dependency>
<groupId>io.github.pryzmm</groupId>
<artifactId>coreconfigapi</artifactId>
<version>1.0.3</version>
</dependency>
Support
You can support the development of this mod and future releases by becoming a sponsor on GitHub or supporting my Ko-Fi!
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
下载 CoreConfig
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器

评论 0
登录后参与评分
还没有评论,来抢沙发吧