Class TabbedConfigScreen<T extends Serializable>

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
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

public abstract class TabbedConfigScreen<T extends Serializable> extends BaseConfigScreen<T>
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, resetButton

    Fields inherited from class CloseableScreen

    parent

    Fields 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    TabbedConfigScreen(String key, net.minecraft.client.gui.screens.Screen parent, ConfigManager<T> manager)
    Creates a tabbed config screen.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    extractRenderState(@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[]
    getTabs(T config)
    The list of tabs to be displayed.
    protected void
     
    protected void
     

    Methods inherited from class BaseConfigScreen

    applyConfigChecked, removed, tick

    Methods inherited from class CloseableScreen

    onClose

    Methods 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, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved, shouldTakeFocusAfterInteraction

    Methods 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 title
      parent - The parent screen
      manager - The config manager
  • Method Details

    • getTabs

      protected abstract net.minecraft.client.gui.components.tabs.Tab[] getTabs(T config)
      The list of tabs to be displayed.
      Parameters:
      config - The config
      Returns:
      An array of tabs
      See Also:
    • init

      protected void init()
      Overrides:
      init in class BaseConfigScreen<T extends Serializable>
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class net.minecraft.client.gui.screens.Screen
    • getInvalidOptions

      protected Collection<net.minecraft.client.gui.components.AbstractWidget> getInvalidOptions()
      Description copied from class: BaseConfigScreen
      Finds invalid options in the config screen. Called once every tick.
      Overrides:
      getInvalidOptions in class BaseConfigScreen<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:
      extractRenderState in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      extractRenderState in class net.minecraft.client.gui.screens.Screen