Class TabbedConfigScreen<T extends Serializable>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.uku3lig.ukulib.config.screen.CloseableScreen
net.uku3lig.ukulib.config.screen.BaseConfigScreen<T>
net.uku3lig.ukulib.config.screen.TabbedConfigScreen<T>
- Type Parameters:
T- The type of the config
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement
A config screen that utilizes a tabbed layout instead of a simple list of buttons.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
Fields inherited from class BaseConfigScreen
doneButton, log, manager, resetButtonFields inherited from class CloseableScreen
parentFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, screenExecutor, title, width -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTabbedConfigScreen(String key, net.minecraft.client.gui.screens.Screen parent, ConfigManager<T> manager) Creates a tabbed config screen. -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(@NotNull net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float delta) protected Collection<net.minecraft.client.gui.components.AbstractWidget> Finds invalid options in the config screen.protected abstract net.minecraft.client.gui.components.tabs.Tab[]The list of tabs to be displayed.protected voidinit()protected voidMethods inherited from class BaseConfigScreen
applyConfigChecked, removed, tickMethods inherited from class CloseableScreen
onCloseMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isInputCaptured, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removeWidget, resize, scheduleNarration, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
capturesInput, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
TabbedConfigScreen
protected TabbedConfigScreen(String key, net.minecraft.client.gui.screens.Screen parent, ConfigManager<T> manager) Creates a tabbed config screen.- Parameters:
key- The translation key of the titleparent- The parent screenmanager- The config manager
-
-
Method Details
-
getTabs
The list of tabs to be displayed.- Parameters:
config- The config- Returns:
- An array of tabs
- See Also:
-
init
protected void init()- Overrides:
initin classBaseConfigScreen<T extends Serializable>
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classnet.minecraft.client.gui.screens.Screen
-
getInvalidOptions
Description copied from class:BaseConfigScreenFinds invalid options in the config screen. Called once every tick.- Overrides:
getInvalidOptionsin classBaseConfigScreen<T extends Serializable>- Returns:
- The collection of invalid options.
-
extractRenderState
public void extractRenderState(@NotNull @NotNull net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float delta) - Specified by:
extractRenderStatein interfacenet.minecraft.client.gui.components.Renderable- Overrides:
extractRenderStatein classnet.minecraft.client.gui.screens.Screen
-