Class LodestoneConfig.ConfigValueHolder<T>

java.lang.Object
team.lodestar.lodestone.systems.config.LodestoneConfig.ConfigValueHolder<T>
Enclosing class:
LodestoneConfig

public static class LodestoneConfig.ConfigValueHolder<T> extends Object
  • Constructor Details

    • ConfigValueHolder

      public ConfigValueHolder(String modId, String path, LodestoneConfig.BuilderSupplier<T> valueSupplier)
      Parameters:
      modId - - Your mod id. Must match whatever you passed into the LodestoneConfig(String, String, ForgeConfigSpec.Builder) constructor.
      path - - Path towards your value separated with "/". The first string from a split of your path will be removed and added to the configType.
      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()