Package org.cyclops.cyclopscore.config
Class ConfigHandlerNeoForge
java.lang.Object
org.cyclops.cyclopscore.config.ConfigHandlerCommon
org.cyclops.cyclopscore.config.ConfigHandler
org.cyclops.cyclopscore.config.ConfigHandlerNeoForge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToConfigDictionary
(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, ?> e) void
generateConfigProperties
(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, ?> config) protected String
getConfigPropertyLegacyPrefix
(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, ?> config, ConfigurableProperty annotation) 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) static org.cyclops.cyclopscore.config.ModConfigLocation
modConfigTypeToLocation
(net.neoforged.fml.config.ModConfig.Type modConfigType) 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, ExtendedConfigForge<?, V> config, Callable<?> callback) Deprecated.<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.ConfigHandler
addConfigurable, addToConfigDictionary
Methods inherited from class org.cyclops.cyclopscore.config.ConfigHandlerCommon
addCategory, addConfigurable, getAllFields, getCategories, getCommandableProperties, getConfigDictionary, getConfigId, getConfigurables, getDictionary, getMod, loadForgeRegistries, loadForgeRegistriesFilled, loadModInit, 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
-
registerToRegistry
@Deprecated public <V> void registerToRegistry(net.minecraft.core.Registry<? super V> registry, ExtendedConfigForge<?, V> config, @Nullable Callable<?> callback) Deprecated. -
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.
-
modConfigTypeToLocation
public static org.cyclops.cyclopscore.config.ModConfigLocation modConfigTypeToLocation(net.neoforged.fml.config.ModConfig.Type modConfigType) -
modConfigLocationToType
public static net.neoforged.fml.config.ModConfig.Type modConfigLocationToType(org.cyclops.cyclopscore.config.ModConfigLocation modConfigLocation) -
generateConfigProperties
public void generateConfigProperties(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, throws IllegalArgumentException, IllegalAccessException?> config) - Overrides:
generateConfigProperties
in classorg.cyclops.cyclopscore.config.ConfigHandlerCommon
- Throws:
IllegalArgumentException
IllegalAccessException
-
getConfigPropertyLegacyPrefix
protected String getConfigPropertyLegacyPrefix(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, ?> config, ConfigurableProperty annotation) -
addToConfigDictionary
public void addToConfigDictionary(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, ?> e) - Overrides:
addToConfigDictionary
in classConfigHandler
-