Class VFPTabbedScreen<T>

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.viaversion.viafabricplus.screen.base.VFPScreen
com.viaversion.viafabricplus.screen.base.VFPTabbedScreen<T>
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
Direct Known Subclasses:
AbstractProtocolSelectionScreen, BetaCraftServerListScreen, SettingsScreen

public abstract class VFPTabbedScreen<T> extends VFPScreen
  • 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 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
    VFPTabbedScreen(net.minecraft.network.chat.Component title, boolean backButton)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract List<VFPListEntry>
    entries(T tab)
     
    protected abstract int
     
    protected void
     
    protected T
     
    boolean
    keyPressed(@NonNull net.minecraft.client.input.KeyEvent event)
     
    protected int
     
    protected abstract List<VFPListEntry>
    results(String query)
     
    protected abstract int
    rowWidth(int screenWidth)
     
    protected abstract List<T>
     
    protected abstract net.minecraft.network.chat.Component
    tabTitle(T tab)
     

    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, onFilesDrop, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, 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

    • VFPTabbedScreen

      protected VFPTabbedScreen(net.minecraft.network.chat.Component title, boolean backButton)
  • Method Details

    • tabs

      protected abstract List<T> tabs()
    • tabTitle

      protected abstract net.minecraft.network.chat.Component tabTitle(T tab)
    • entryHeight

      protected abstract int entryHeight()
    • rowWidth

      protected abstract int rowWidth(int screenWidth)
    • entries

      protected abstract List<VFPListEntry> entries(T tab)
    • results

      protected abstract List<VFPListEntry> results(String query)
    • initialTab

      protected T initialTab()
    • listBottomMargin

      protected int listBottomMargin()
    • init

      protected void init()
      Overrides:
      init in class VFPScreen
    • keyPressed

      public boolean keyPressed(@NonNull net.minecraft.client.input.KeyEvent event)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.screens.Screen