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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToConfigDictionary(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, ?> e) voidgenerateConfigProperties(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<?, ?, ?> config) protected StringgetConfigPropertyLegacyPrefix(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<?>>> voidinitialize(Collection<IConfigInitializer> configInitializers) Initialize the configs by running builders through all relevant parts.static net.neoforged.fml.config.ModConfig.TypemodConfigLocationToType(org.cyclops.cyclopscore.config.ModConfigLocation modConfigLocation) static org.cyclops.cyclopscore.config.ModConfigLocationmodConfigTypeToLocation(net.neoforged.fml.config.ModConfig.Type modConfigType) protected <T> voidonConfigPropertyInit(org.cyclops.cyclopscore.config.ConfigurablePropertyData<T> configPropertyData, net.neoforged.neoforge.common.ModConfigSpec.Builder configBuilder) voidonLoad(net.neoforged.fml.event.config.ModConfigEvent.Loading configEvent) voidonRegistryEvent(net.neoforged.neoforge.registries.RegisterEvent event) voidonReload(net.neoforged.fml.event.config.ModConfigEvent.Reloading configEvent) <V> voidregisterToRegistry(net.minecraft.core.Registry<? super V> registry, ExtendedConfigForge<?, V> config, Callable<?> callback) Deprecated.<V> voidregisterToRegistry(net.minecraft.core.Registry<? super V> registry, org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigRegistry<?, V, ?> config, Callable<?> callback) voidsyncProcessedConfigs(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, addToConfigDictionaryMethods 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:
registerToRegistryin 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:
generateConfigPropertiesin classorg.cyclops.cyclopscore.config.ConfigHandlerCommon- Throws:
IllegalArgumentExceptionIllegalAccessException
-
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:
addToConfigDictionaryin classConfigHandler
-