截图
介绍
中文介绍正在准备中,下面暂时显示原文。
reconfigure
A config library for my mods
Design goals
- Uses the builder pattern so all options autocomplete. Just start with
Config.builder()and autocompletion will guide you through the whole process of creating a configuration - Designed to be used in the field initializers of a config class
- Does not use annotations for flexibility at runtime
Preview


Example definition
class DemoConfig {
public final Config CONFIG = Config.builder("reconfigure-test")
.serializer(Serializers.JSON)
.build();
public final ConfigTab DEMO_TAB = CONFIG.createTab("demo").build();
Void HEADLINE = DEMO_TAB.createHeadline("headline");
public final Property<String> STRING = DEMO_TAB.createStringProperty("string").defaultValue("Hello world")
.asTextField().placeholder("Enter something").build();
public final Property<Boolean> CHECKBOX = DEMO_TAB.createBooleanProperty("checkbox").defaultValue(true)
.asCheckbox().build();
public final Property<Boolean> TOGGLE_BUTTON = DEMO_TAB.createBooleanProperty("toggle_button")
.asToggleButton().build();
public final Property<Integer> SLIDER = DEMO_TAB.createIntegerProperty("slider").defaultValue(4).range(1,10)
.asSlider().build();
public final Property<DayOfWeek> CYCLE_BUTTON = DEMO_TAB
.createEnumProperty("cycle_button", DayOfWeek.class)
.defaultValue(DayOfWeek.MONDAY)
.asCyclingButton()
.build();
public final Property<Integer> COLOR = DEMO_TAB.createIntegerProperty("color").asColorPicker().build();
public final Property<String> EDIT_BOX = DEMO_TAB.createStringProperty("box").asEditBox().build();
public final Property<List<String>> CHIP_LIST = DEMO_TAB.createListProperty("chiplist")
.asChipList()
.build();
}
常见问题
reconfigure 支持哪些 Minecraft 版本?
reconfigure 支持 Minecraft Java 版 1.21.4–26.3,共 13 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
reconfigure 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
replaceitem 的其他作品
查看全部 →
Symbol Chat
by replaceitem
A client side mod that adds a symbol/emoji menu as well as writing in different unicode fonts.
89万
1 个月前
Modrinth
Integrated circuit
by replaceitem
Adds integrated circuits to compact your redstone circuits into one block
3.9万
16 天前
Modrinth
Dynamic App Icon
by replaceitem
Simple mod that changes the application icon of Minecraft to that of a world or server when joining
3.1万
1 个月前
Modrinth
Secret Spectator
by replaceitem
Serverside mod that prevents non-spectators from seeing spectators grayed out in the tab player list.
2.5万
4 个月前
Modrinth
评论
登录后评论和评分