Package org.cyclops.cyclopscore.config
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
(Collection<IConfigInitializer> configInitializers) 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
-
Constructor Details
-
ConfigHandlerNeoForge
-
-
Method Details
-
getRegistryEntriesHolder
-
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 classorg.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
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 classorg.cyclops.cyclopscore.config.ConfigHandlerCommon
-