Class ConfigHandlerNeoForge

java.lang.Object
org.cyclops.cyclopscore.config.ConfigHandlerCommon
org.cyclops.cyclopscore.config.ConfigHandlerNeoForge

public class ConfigHandlerNeoForge extends org.cyclops.cyclopscore.config.ConfigHandlerCommon
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToConfigDictionary(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?,?,?> e)
     
    com.google.common.collect.Multimap<String,org.apache.commons.lang3.tuple.Pair<org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigRegistry<?,?,?>,Callable<?>>>
     
     
    void
    Initialize the configs by running builders through all relevant parts.
    static net.neoforged.fml.config.ModConfig.Type
    modConfigLocationToType(org.cyclops.cyclopscore.config.ModConfigLocation modConfigLocation)
     
    protected <T> void
    onConfigPropertyInit(org.cyclops.cyclopscore.config.ConfigurablePropertyData<T> configPropertyData, net.neoforged.neoforge.common.ModConfigSpec.Builder configBuilder)
     
    void
    onLoad(net.neoforged.fml.event.config.ModConfigEvent.Loading configEvent)
     
    void
    onRegistryEvent(net.neoforged.neoforge.registries.RegisterEvent event)
     
    void
    onReload(net.neoforged.fml.event.config.ModConfigEvent.Reloading configEvent)
     
    <V> void
    registerToRegistry(net.minecraft.core.Registry<? super V> registry, org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigRegistry<?,V,?> config, Callable<?> callback)
     
    void
    syncProcessedConfigs(net.neoforged.fml.config.ModConfig config, boolean reload)
    Sync the config values that were already loaded.

    Methods inherited from class org.cyclops.cyclopscore.config.ConfigHandlerCommon

    addCategory, addConfigurable, generateConfigProperties, getAllFields, getCategories, getCommandableProperties, getConfigDictionary, getConfigId, getConfigurables, getDictionary, getMod, loadModInit, loadRegistriesCreated, loadRegistriesFilled, loadSetup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigHandlerNeoForge

      public ConfigHandlerNeoForge(ModBaseNeoForge<?> mod)
  • Method Details

    • getRegistryEntriesHolder

      public com.google.common.collect.Multimap<String,org.apache.commons.lang3.tuple.Pair<org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigRegistry<?,?,?>,Callable<?>>> getRegistryEntriesHolder()
    • getRegistryEventPassed

      public Set<String> getRegistryEventPassed()
    • registerToRegistry

      public <V> void registerToRegistry(net.minecraft.core.Registry<? super V> registry, org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigRegistry<?,V,?> config, @Nullable Callable<?> callback)
      Specified by:
      registerToRegistry in class org.cyclops.cyclopscore.config.ConfigHandlerCommon
    • onLoad

      public void onLoad(net.neoforged.fml.event.config.ModConfigEvent.Loading configEvent)
    • onReload

      public void onReload(net.neoforged.fml.event.config.ModConfigEvent.Reloading configEvent)
    • onRegistryEvent

      public void onRegistryEvent(net.neoforged.neoforge.registries.RegisterEvent event)
    • initialize

      public void initialize(Collection<IConfigInitializer> configInitializers)
      Initialize the configs by running builders through all relevant parts.
      Parameters:
      configInitializers - A collection of additional initializers to run the config builders through.
    • onConfigPropertyInit

      protected <T> void onConfigPropertyInit(org.cyclops.cyclopscore.config.ConfigurablePropertyData<T> configPropertyData, net.neoforged.neoforge.common.ModConfigSpec.Builder configBuilder)
    • syncProcessedConfigs

      public void syncProcessedConfigs(net.neoforged.fml.config.ModConfig config, boolean reload)
      Sync the config values that were already loaded. This will update the values in-game and in the config file.
      Parameters:
      config - The mod config that is being loaded.
      reload - If we are reloading, otherwise this is an initial load.
    • modConfigLocationToType

      public static net.neoforged.fml.config.ModConfig.Type modConfigLocationToType(org.cyclops.cyclopscore.config.ModConfigLocation modConfigLocation)
    • addToConfigDictionary

      public void addToConfigDictionary(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?,?,?> e)
      Overrides:
      addToConfigDictionary in class org.cyclops.cyclopscore.config.ConfigHandlerCommon