Class ConfigScreenFactory
java.lang.Object
johnsmith.configoverhauled.api.client.gui.screen.ConfigScreenFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigScreencreateDefault(net.minecraft.client.gui.screens.Screen parent, ConfigManager manager) Constructs the default configuration screen implementation.static ConfigScreencreateWithRegistry(net.minecraft.client.gui.screens.Screen parent, ConfigManager manager, WidgetRegistry widgetRegistry) Constructs the default configuration screen implementation.
-
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.
-