Interface IPlatformConfigHelper
- All Known Implementing Classes:
NeoForgePlatformHelper
public interface IPlatformConfigHelper
Platform abstraction for config management in Obsidian Weave mods.
Implemented by platform-specific helpers for Fabric and Forge.
-
Method Summary
Modifier and TypeMethodDescription<T> TgetValue(ConfigEntry<T> entry) Gets the value of a config entry.voidload(ConfigHolder holder) Loads the config for the given holder from disk.voidregister(ConfigHolder holder) Registers a config holder with the platform.voidsave(ConfigHolder holder) Saves the config for the given holder to disk.<T> voidsetValue(ConfigEntry<T> entry, T value) Sets the value of a config entry.
-
Method Details
-
register
Registers a config holder with the platform.- Parameters:
holder- The config holder.
-
load
Loads the config for the given holder from disk.- Parameters:
holder- The config holder.
-
save
Saves the config for the given holder to disk.- Parameters:
holder- The config holder.
-
getValue
Gets the value of a config entry.- Type Parameters:
T- The value type.- Parameters:
entry- The config entry.- Returns:
- The value of the config entry.
-
setValue
Sets the value of a config entry.- Type Parameters:
T- The value type.- Parameters:
entry- The config entry.value- The value to set.
-