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 TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationprotected final net.minecraft.client.gui.screens.Screenprotected final net.minecraft.core.Registry<T> static final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationFields 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, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRegistrySelectionScreen(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 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.ResourceLocation sprite, net.minecraft.resources.ResourceLocation 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, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, 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, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMovedMethods 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
-
iconProvider
-
nameProvider
-
-
Constructor Details
-
AbstractRegistrySelectionScreen
-
-
Method Details
-
addSearchBarWithClear
-
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
-