Class InteractiveMCConfig
java.lang.Object
net.timtaran.interactivemc.init.registry.InteractiveMCConfig
The main config class for the mod.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic dev.isxander.yacl3.config.v2.api.ConfigClassHandler<InteractiveMCConfig> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pathnet.minecraft.client.gui.screens.ScreengetConfigScreen(net.minecraft.client.gui.screens.Screen parentScreen) Generates the config screen using YetAnotherConfigLib.static InteractiveMCConfigGets the singleton instance of the config.static voidload()Loads the config and updates the global storage.static voidsave()Saves the config and updates the global storage.
-
Field Details
-
HANDLER
-
testValue
-
-
Constructor Details
-
InteractiveMCConfig
-
InteractiveMCConfig
public InteractiveMCConfig()
-
-
Method Details
-
getConfigDirectory
-
getInstance
Gets the singleton instance of the config.- Returns:
- the config instance
-
save
public static void save()Saves the config and updates the global storage. -
load
public static void load()Loads the config and updates the global storage. -
getConfigScreen
public net.minecraft.client.gui.screens.Screen getConfigScreen(net.minecraft.client.gui.screens.Screen parentScreen) Generates the config screen using YetAnotherConfigLib.- Parameters:
parentScreen- the parent screen- Returns:
- the config screen
-