Class ConfigValueHolder<T>

java.lang.Object
team.lodestar.lodestone.systems.config.ConfigValueHolder<T>

public class ConfigValueHolder<T> extends Object
  • 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 that
      path - - Path towards your value, separated by "/".
      valueSupplier - - Supplier to your config value. config will be set to the supplied value when config is initialized.
  • Method Details

    • setConfig

      public void setConfig(net.minecraftforge.common.ForgeConfigSpec.Builder builder)
    • setConfigValue

      public void setConfigValue(T t)
    • getConfig

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T> getConfig()
    • getConfigValue

      public T getConfigValue()