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 ClassesModifier and TypeClassDescriptionclassclassNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Function<T, RenderableIcon> static final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierprotected final net.minecraft.client.gui.screens.Screenprotected final net.minecraft.core.Registry<T> static final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.IdentifierFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractRegistrySelectionScreen(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 TypeMethodDescriptionprotected voidaddFooterButtons(Runnable onDone) protected net.minecraft.client.gui.components.EditBoxaddSearchBarWithClear(int x, int y, int totalWidth, Consumer<String> responder) protected AbstractRegistrySelectionScreen<T>.ElementEntrycreateEntry(AbstractRegistrySelectionScreen<T>.AbstractElementList list, T element, net.minecraft.resources.Identifier sprite, net.minecraft.resources.Identifier highlightedSprite, Runnable onTransfer) protected net.minecraft.network.chat.ComponenttrimComponent(net.minecraft.network.chat.Component component, int maxWidth) protected StringtrimString(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, 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
mouseMoved, shouldTakeFocusAfterInteractionMethods 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
-
iconProvider
-
nameProvider
-
-
Constructor Details
-
AbstractRegistrySelectionScreen
-
-
Method Details
-
addSearchBarWithClear
-
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
-