Class ConfigScreenFactory

java.lang.Object
johnsmith.configoverhauled.api.client.gui.screen.ConfigScreenFactory

public final class ConfigScreenFactory extends Object
  • Constructor Details

    • ConfigScreenFactory

      public ConfigScreenFactory()
  • Method Details

    • createDefault

      public static ConfigScreen createDefault(net.minecraft.client.gui.screens.Screen parent, ConfigManager manager)
      Constructs the default configuration screen implementation.
      Parameters:
      parent - The parent screen to return to upon closing.
      manager - The configuration manager supplying the data model.
      Returns:
      A constructed screen satisfying the ConfigScreen contract.
    • createWithRegistry

      public static ConfigScreen createWithRegistry(net.minecraft.client.gui.screens.Screen parent, ConfigManager manager, WidgetRegistry widgetRegistry)
      Constructs the default configuration screen implementation.
      Parameters:
      parent - The parent screen to return to upon closing.
      manager - The configuration manager supplying the data model.
      widgetRegistry - The widget registry supplying the widget factories.
      Returns:
      A constructed screen satisfying the ConfigScreen contract.