Package net.minecraft.client.gui.widget
Class ElementListWidget<E extends ElementListWidget.Entry<E>>
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.ElementListWidget<E>
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,ParentElement
,Selectable
- Direct Known Subclasses:
ControlsListWidget
,EditGameRulesScreen.RuleListWidget
,OptionListWidget
,SocialInteractionsPlayerListWidget
@Environment(CLIENT)
public abstract class ElementListWidget<E extends ElementListWidget.Entry<E>>
extends EntryListWidget<E>
- Mappings:
Namespace Name official esw
intermediary net/minecraft/class_4265
named net/minecraft/client/gui/widget/ElementListWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ElementListWidget.Entry<E extends ElementListWidget.Entry<E>>
Nested 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, field_45909, headerHeight, height, itemHeight, left, right, top, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionElementListWidget
(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendNarrations
(NarrationMessageBuilder builder) @Nullable GuiNavigationPath
getNavigationPath
(GuiNavigation navigation) getType()
protected boolean
isSelectedEntry
(int index) void
setFocused
(@Nullable Element focused) Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawSelectionHighlight, enableScissor, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNavigationFocus, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getRowWidth, getScrollAmount, getScrollbarPositionX, getSelectedOrNull, isMouseOver, isSelectButton, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, removeEntryWithoutScrolling, render, renderDecorations, renderEntry, renderHeader, renderList, replaceEntries, setEntryParentList, setLeftPos, setRenderBackground, setRenderHeader, setScrollAmount, setSelected, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging
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.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, hoveredElement, isFocused, keyPressed, keyReleased, setFocused
Methods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Constructor Details
-
ElementListWidget
public ElementListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) - Mappings:
Namespace Name Mixin selector official <init>
Lesl;<init>(Leqv;IIIII)V
intermediary <init>
Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIIII)V
named <init>
Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
-
-
Method Details
-
setFocused
- Specified by:
setFocused
in interfaceParentElement
- Overrides:
setFocused
in classEntryListWidget<E extends ElementListWidget.Entry<E>>
- Mappings:
Namespace Name Mixin selector official a
Leuj;a(Leuk;)V
intermediary method_25395
Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V
named setFocused
Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V
-
getType
- Specified by:
getType
in interfaceSelectable
- Overrides:
getType
in classEntryListWidget<E extends ElementListWidget.Entry<E>>
- Mappings:
Namespace Name Mixin selector official q
Lewg;q()Lewg$a;
intermediary method_37018
Lnet/minecraft/class_6379;method_37018()Lnet/minecraft/class_6379$class_6380;
named getType
Lnet/minecraft/client/gui/Selectable;getType()Lnet/minecraft/client/gui/Selectable$SelectionType;
-
isSelectedEntry
protected boolean isSelectedEntry(int index) - Overrides:
isSelectedEntry
in classEntryListWidget<E extends ElementListWidget.Entry<E>>
- Mappings:
Namespace Name Mixin selector official e
Lesl;e(I)Z
intermediary method_25332
Lnet/minecraft/class_350;method_25332(I)Z
named isSelectedEntry
Lnet/minecraft/client/gui/widget/EntryListWidget;isSelectedEntry(I)Z
-
appendNarrations
- Mappings:
Namespace Name Mixin selector official b
Lewj;b(Lewi;)V
intermediary method_37020
Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V
named appendNarrations
Lnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V