Class InteractiveMCConfig

java.lang.Object
net.timtaran.interactivemc.init.registry.InteractiveMCConfig

public class InteractiveMCConfig extends Object
The main config class for the mod.
  • Field Details

    • HANDLER

      public static dev.isxander.yacl3.config.v2.api.ConfigClassHandler<InteractiveMCConfig> HANDLER
    • testValue

      public String testValue
  • Constructor Details

    • InteractiveMCConfig

      public InteractiveMCConfig(String testValue)
    • InteractiveMCConfig

      public InteractiveMCConfig()
  • Method Details

    • getConfigDirectory

      public static Path getConfigDirectory()
    • getInstance

      public static InteractiveMCConfig 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