reconfigure

reconfigure

Configuration library for my mods

4 238 downloads 7 followers

reconfigure

A config library for my mods

Documentation Available for fabric Requires fabric api Available on Modrinth See me on GitHub Chat on Discord

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

Basic widgets Advanced widgets

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();
}
Version Minecraft Loader Download

0.3.3

26.3
fabric
Download

0.3.2

26.2
fabric
Download

0.3.1

26.1, 26.1.1, 26.1.2
fabric
Download

0.3.0

1.21.11
fabric
Download

0.2.0

1.21.10
fabric
Download

0.1.17

1.21.9
fabric
Download

0.1.16

1.21.9
fabric
Download

0.1.15

1.21.8
fabric
Download

0.1.14

1.21.8
fabric
Download

0.1.13

1.21.8
fabric
Download

0.1.12

1.21.8
fabric
Download

0.1.11

1.21.8
fabric
Download

0.1.10

1.21.7
fabric
Download

0.1.9

1.21.6
fabric
Download

0.1.8

1.21.6
fabric
Download

0.1.7

1.21.5
fabric
Download

0.1.6

1.21.5
fabric
Download

0.1.5

1.21.5
fabric
Download

0.1.4

1.21.4
fabric
Download

0.1.3

1.21.4
fabric
Download

0.1.2

1.21.4
fabric
Download

0.1.1

1.21.4
fabric
Download

0.1.0

1.21.4
fabric
Download