Class ButtonTab<T extends Serializable>
java.lang.Object
net.minecraft.client.gui.components.tabs.GridLayoutTab
net.uku3lig.ukulib.config.option.widget.ButtonTab<T>
- Type Parameters:
T- The type of the config
- All Implemented Interfaces:
net.minecraft.client.gui.components.tabs.Tab
public abstract class ButtonTab<T extends Serializable>
extends net.minecraft.client.gui.components.tabs.GridLayoutTab
A tab made with
WidgetCreator for ease of use.-
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.components.tabs.GridLayoutTab
layout -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedButtonTab(String key, ConfigManager<T> manager) Creates a widget tab and adds all thegiven widgetsto it.protectedButtonTab(net.minecraft.network.chat.Component 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.components.tabs.GridLayoutTab
doLayout, getTabExtraNarration, getTabTitle, visitChildren
-
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
-