Class ConfigValueHolder<T>
java.lang.Object
team.lodestar.lodestone.systems.config.ConfigValueHolder<T>
-
Constructor Summary
ConstructorsConstructorDescriptionConfigValueHolder(ConfigGroup configGroup, String path, LodestoneConfig.BuilderSupplier<T> valueSupplier) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.common.ForgeConfigSpec.ConfigValue<T>voidsetConfig(net.minecraftforge.common.ForgeConfigSpec.Builder builder) voidsetConfigValue(T t)
-
Constructor Details
-
ConfigValueHolder
public ConfigValueHolder(ConfigGroup configGroup, String path, LodestoneConfig.BuilderSupplier<T> valueSupplier) - Parameters:
configGroup- - The config group this config value belongs to. For example, If we want to add a config value to "lodestone:config", we would need to use thatpath- - Path towards your value, separated by "/".valueSupplier- - Supplier to your config value.configwill be set to the supplied value when config is initialized.
-
-
Method Details
-
setConfig
public void setConfig(net.minecraftforge.common.ForgeConfigSpec.Builder builder) -
setConfigValue
-
getConfig
-
getConfigValue
-