Package net.minecraft.client.gui.screen
Class PresetsScreen.SuperflatPresetsListWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry>
net.minecraft.client.gui.screen.PresetsScreen.SuperflatPresetsListWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,ParentElement,Selectable
- Enclosing class:
PresetsScreen
@Environment(CLIENT)
private class PresetsScreen.SuperflatPresetsListWidget
extends AlwaysSelectedEntryListWidget<PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry>
- Mappings:
Namespace Name official ekg$aintermediary net/minecraft/class_430$class_4196named net/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNested classes/interfaces inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>>Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirectionNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidsetSelected(@Nullable PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry superflatPresetEntry) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
appendNarrations, changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, ensureSelectedEntryVisible, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getRowLeft, getRowRight, getRowTop, getRowWidth, getScrollAmount, getScrollbarPositionX, getSelectedOrNull, getType, isMouseOver, isSelectedEntry, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderHorizontalShadows, setRenderSelection, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocusMethods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Constructor Details
-
SuperflatPresetsListWidget
- Mappings:
Namespace Name Mixin selector official <init>Lekg$a;<init>(Lekg;Lhn;)Vintermediary <init>Lnet/minecraft/class_430$class_4196;<init>(Lnet/minecraft/class_430;Lnet/minecraft/class_5455;)Vnamed <init>Lnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget;<init>(Lnet/minecraft/client/gui/screen/PresetsScreen;Lnet/minecraft/util/registry/DynamicRegistryManager;)V
-
-
Method Details
-
setSelected
public void setSelected(@Nullable @Nullable PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry superflatPresetEntry) - Overrides:
setSelectedin classEntryListWidget<PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry>- Mappings:
Namespace Name Mixin selector official aLekg$a;a(Lekg$a$a;)Vintermediary method_20103Lnet/minecraft/class_430$class_4196;method_20103(Lnet/minecraft/class_430$class_4196$class_432;)Vnamed setSelectedLnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget;setSelected(Lnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget$SuperflatPresetEntry;)V
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classEntryListWidget<PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry>- Mappings:
Namespace Name Mixin selector official aLego;a()Zintermediary method_25316Lnet/minecraft/class_350;method_25316()Znamed isFocusedLnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classEntryListWidget<PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry>- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLehq;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-