Closed xpple closed 1 month ago
Adds support for a global change callback that is called whenever any configuration value is updated. For example:
new ModConfigBuilder<>("<mod id>", Configs.class) .registerGlobalChangeHook(event -> LOGGER.info("{} was updated | old: {}, new: {}", event.config(), event.oldValue(), event.newValue())) .build();
Adds support for a global change callback that is called whenever any configuration value is updated. For example: