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,net.minecraft.world.item.ItemStack>
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    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.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • 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,net.minecraft.world.item.ItemStack> 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.ResourceLocation sprite, net.minecraft.resources.ResourceLocation 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, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError

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

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

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

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

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

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

    mouseMoved

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

    • SELECT_HIGHLIGHTED_SPRITE

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

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

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

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

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

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

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

      public static final net.minecraft.resources.ResourceLocation 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,net.minecraft.world.item.ItemStack> 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,net.minecraft.world.item.ItemStack> 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.ResourceLocation sprite, net.minecraft.resources.ResourceLocation 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)