I did some functions on configuration and it works fine. But they can only be configured through the toml file. I want players to configure them in the mod information interface. Is there a way to achieve this?
This is my configuration class。
public class ClientConfig {
public static final ForgeConfigSpec CONFIG;
public static ForgeConfigSpec.BooleanValue isToolBarOpen;
static {
ForgeConfigSpec.Builder configBuilder = new ForgeConfigSpec.Builder();
setupConfig(configBuilder);
CONFIG = configBuilder.build();
}
private static void setupConfig(ForgeConfigSpec.Builder builder) {
isToolBarOpen = builder.define("is_tool_bar_open", true);
}
}