Class AbstractRegistrySelectionScreen<T>

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
johnsmith.configoverhauled.impl.client.gui.screen.AbstractRegistrySelectionScreen<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:
RegistryListSelectionScreen, RegistrySelectionScreen

public abstract class AbstractRegistrySelectionScreen<T> extends net.minecraft.client.gui.screens.Screen
  • Nested Class Summary

    Nested Classes

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Function<T, RenderableIcon>
     
    static final net.minecraft.resources.Identifier
     
    static final net.minecraft.resources.Identifier
     
    static final net.minecraft.resources.Identifier
     
    static final net.minecraft.resources.Identifier
     
    protected final Function<T, net.minecraft.network.chat.Component>
     
    protected final net.minecraft.client.gui.screens.Screen
     
    protected final net.minecraft.core.Registry<T>
     
    static final net.minecraft.resources.Identifier
     
    static final net.minecraft.resources.Identifier
     
    static final net.minecraft.resources.Identifier
     
    static final net.minecraft.resources.Identifier
     

    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, renderables, screenExecutor, title, width
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractRegistrySelectionScreen(net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, net.minecraft.core.Registry<T> registry, Function<T, RenderableIcon> iconProvider, Function<T, net.minecraft.network.chat.Component> nameProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected net.minecraft.client.gui.components.EditBox
    addSearchBarWithClear(int x, int y, int totalWidth, Consumer<String> responder)
     
    createEntry(AbstractRegistrySelectionScreen<T>.AbstractElementList list, T element, net.minecraft.resources.Identifier sprite, net.minecraft.resources.Identifier highlightedSprite, Runnable onTransfer)
     
    protected net.minecraft.network.chat.Component
    trimComponent(net.minecraft.network.chat.Component component, int maxWidth)
     
    protected String
    trimString(String text, int maxWidth)
     

    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, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, 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
  • Field Details

    • SELECT_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.Identifier SELECT_HIGHLIGHTED_SPRITE
    • SELECT_SPRITE

      public static final net.minecraft.resources.Identifier SELECT_SPRITE
    • UNSELECT_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.Identifier UNSELECT_HIGHLIGHTED_SPRITE
    • UNSELECT_SPRITE

      public static final net.minecraft.resources.Identifier UNSELECT_SPRITE
    • MOVE_UP_SPRITE

      public static final net.minecraft.resources.Identifier MOVE_UP_SPRITE
    • MOVE_UP_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.Identifier MOVE_UP_HIGHLIGHTED_SPRITE
    • MOVE_DOWN_SPRITE

      public static final net.minecraft.resources.Identifier MOVE_DOWN_SPRITE
    • MOVE_DOWN_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.Identifier MOVE_DOWN_HIGHLIGHTED_SPRITE
    • parent

      protected final net.minecraft.client.gui.screens.Screen parent
    • registry

      protected final net.minecraft.core.Registry<T> registry
    • iconProvider

      protected final Function<T, RenderableIcon> iconProvider
    • nameProvider

      protected final Function<T, net.minecraft.network.chat.Component> nameProvider
  • Constructor Details

    • AbstractRegistrySelectionScreen

      protected AbstractRegistrySelectionScreen(net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, net.minecraft.core.Registry<T> registry, Function<T, RenderableIcon> iconProvider, Function<T, net.minecraft.network.chat.Component> nameProvider)
  • Method Details

    • addSearchBarWithClear

      protected net.minecraft.client.gui.components.EditBox addSearchBarWithClear(int x, int y, int totalWidth, Consumer<String> responder)
    • addFooterButtons

      protected void addFooterButtons(Runnable onDone)
    • createEntry

      protected AbstractRegistrySelectionScreen<T>.ElementEntry createEntry(AbstractRegistrySelectionScreen<T>.AbstractElementList list, T element, net.minecraft.resources.Identifier sprite, net.minecraft.resources.Identifier highlightedSprite, Runnable onTransfer)
    • trimComponent

      protected net.minecraft.network.chat.Component trimComponent(net.minecraft.network.chat.Component component, int maxWidth)
    • trimString

      protected String trimString(String text, int maxWidth)