Class ButtonTab<T extends Serializable>
java.lang.Object
net.minecraft.client.gui.tab.GridScreenTab
net.uku3lig.ukulib.config.option.widget.ButtonTab<T>
- Type Parameters:
T- The type of the config
- All Implemented Interfaces:
net.minecraft.client.gui.tab.Tab
public abstract class ButtonTab<T extends Serializable>
extends net.minecraft.client.gui.tab.GridScreenTab
A tab made with
WidgetCreator for ease of use.-
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.tab.GridScreenTab
grid -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedButtonTab(String key, ConfigManager<T> manager) Creates a widget tab and adds all thegiven widgetsto it.protectedButtonTab(net.minecraft.text.Text title, ConfigManager<T> manager) Creates a widget tab and adds all thegiven widgetsto it -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract WidgetCreator[]getWidgets(T config) The widgets to be shown in this tabMethods inherited from class net.minecraft.client.gui.tab.GridScreenTab
forEachChild, getTitle, refreshGridMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.tab.Tab
tick
-
Field Details
-
manager
The config manager
-
-
Constructor Details
-
ButtonTab
Creates a widget tab and adds all thegiven widgetsto it- Parameters:
title- The title of the tabmanager- The config manager
-
ButtonTab
Creates a widget tab and adds all thegiven widgetsto it. The title is created from the given translation key.- Parameters:
key- The translation key of the titlemanager- The config manager
-
-
Method Details
-
getWidgets
The widgets to be shown in this tab- Parameters:
config- The config- Returns:
- The array of widgets to be displayed
-