Uses of Class
net.neoforged.fml.config.ModConfig
Packages that use ModConfig
Package
Description
-
Uses of ModConfig in net.neoforged.fml.config
Fields in net.neoforged.fml.config declared as ModConfigModifier and TypeFieldDescriptionprivate final ModConfigConfigWatcher.modConfigprivate final ModConfigLoadedConfig.modConfigThe field for themodConfigrecord component.Fields in net.neoforged.fml.config with type parameters of type ModConfigModifier and TypeFieldDescription(package private) final ConcurrentHashMap<String, List<ModConfig>> ConfigTracker.configsByMod(package private) final EnumMap<ModConfig.Type, Set<ModConfig>> ConfigTracker.configSets(package private) final ConcurrentHashMap<String, ModConfig> ConfigTracker.fileMapMethods in net.neoforged.fml.config that return ModConfigModifier and TypeMethodDescriptionLoadedConfig.modConfig()Returns the value of themodConfigrecord component.ConfigTracker.registerConfig(ModConfig.Type type, IConfigSpec spec, ModContainer container) Registers a new configuration of the given type for a mod, using the default filename for this type of config.ConfigTracker.registerConfig(ModConfig.Type type, IConfigSpec spec, ModContainer container, String fileName) Registers a new configuration of the given type for a mod, using a custom filename.Methods in net.neoforged.fml.config that return types with arguments of type ModConfigModifier and TypeMethodDescriptionModConfigs.getConfigSet(ModConfig.Type type) ModConfigs.getFileMap()ModConfigs.getModConfigs(String modId) Methods in net.neoforged.fml.config with parameters of type ModConfigModifier and TypeMethodDescriptionstatic voidConfigTracker.acceptSyncedConfig(ModConfig modConfig, byte[] bytes) (package private) static voidConfigTracker.loadConfig(ModConfig modConfig, Path path, Function<ModConfig, ModConfigEvent> eventConstructor) (package private) static voidConfigTracker.openConfig(ModConfig config, Path configBasePath, @Nullable Path configOverrideBasePath) private static PathConfigTracker.resolveBasePath(ModConfig config, Path configBasePath, @Nullable Path configOverrideBasePath) private static voidConfigTracker.setupConfigFile(ModConfig modConfig, Path file) (package private) voidConfigTracker.trackConfig(ModConfig config) private static voidConfigTracker.unloadConfig(ModConfig config) voidIConfigSpec.validateSpec(ModConfig config) Validate this specification in the context of the givenconfig.Method parameters in net.neoforged.fml.config with type arguments of type ModConfigModifier and TypeMethodDescription(package private) static voidConfigTracker.loadConfig(ModConfig modConfig, Path path, Function<ModConfig, ModConfigEvent> eventConstructor) (package private) voidModConfig.setConfig(@Nullable LoadedConfig loadedConfig, Function<ModConfig, ModConfigEvent> eventConstructor) Constructors in net.neoforged.fml.config with parameters of type ModConfigModifierConstructorDescription(package private)ConfigWatcher(ModConfig modConfig, Path path, ClassLoader classLoader) (package private)LoadedConfig(com.electronwill.nightconfig.core.CommentedConfig config, @Nullable Path path, ModConfig modConfig) Creates an instance of aLoadedConfigrecord class. -
Uses of ModConfig in net.neoforged.fml.event.config
Fields in net.neoforged.fml.event.config declared as ModConfigMethods in net.neoforged.fml.event.config that return ModConfigConstructors in net.neoforged.fml.event.config with parameters of type ModConfig -
Uses of ModConfig in net.neoforged.neoforge.client.gui
Fields in net.neoforged.neoforge.client.gui declared as ModConfigModifier and TypeFieldDescriptionprivate final ModConfigConfigurationScreen.ConfigurationSectionScreen.Context.modConfigThe field for themodConfigrecord component.Fields in net.neoforged.neoforge.client.gui with type parameters of type ModConfigModifier and TypeFieldDescriptionprivate final com.mojang.datafixers.util.Function4<ConfigurationScreen, ModConfig.Type, ModConfig, Component, Screen> ConfigurationScreen.sectionScreenMethods in net.neoforged.neoforge.client.gui that return ModConfigModifier and TypeMethodDescriptionConfigurationScreen.ConfigurationSectionScreen.Context.modConfig()Returns the value of themodConfigrecord component.Methods in net.neoforged.neoforge.client.gui with parameters of type ModConfigModifier and TypeMethodDescriptionConfigurationScreen.ConfigurationSectionScreen.Context.top(String modId, Screen parent, ModConfig modConfig, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) ConfigurationScreen.translatableConfig(ModConfig modConfig, String suffix, String fallback) Constructors in net.neoforged.neoforge.client.gui with parameters of type ModConfigModifierConstructorDescriptionConfigurationSectionScreen(Screen parent, ModConfig.Type type, ModConfig modConfig, Component title) Constructs a new section screen for the top-most section in aModConfig.ConfigurationSectionScreen(Screen parent, ModConfig.Type type, ModConfig modConfig, Component title, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) Constructs a new section screen for the top-most section in aModConfig.Context(String modId, Screen parent, ModConfig modConfig, ModConfigSpec modSpec, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries, Map<String, Object> valueSpecs, List<String> keylist, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) Creates an instance of aContextrecord class.Constructor parameters in net.neoforged.neoforge.client.gui with type arguments of type ModConfigModifierConstructorDescriptionConfigurationScreen(ModContainer mod, Screen parent, com.mojang.datafixers.util.Function4<ConfigurationScreen, ModConfig.Type, ModConfig, Component, Screen> sectionScreen) -
Uses of ModConfig in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type ModConfig