Package net.minecraft.client.gui.widget
Class EntryListWidget<E extends EntryListWidget.Entry<E>>
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ContainerWidget
net.minecraft.client.gui.widget.EntryListWidget<E>
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,ParentElement,Selectable,Widget
- Direct Known Subclasses:
AlwaysSelectedEntryListWidget,ElementListWidget
@Environment(CLIENT)
public abstract class EntryListWidget<E extends EntryListWidget.Entry<E>>
extends ContainerWidget
- Mappings:
Namespace Name official fdkintermediary net/minecraft/class_350named net/minecraft/client/gui/widget/EntryListWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprotected static classEntryListWidget.Entry<E extends EntryListWidget.Entry<E>>Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final MinecraftClientprotected static final intprivate static final Identifierprivate static final Identifierprotected intprivate Eprotected final intprivate booleanprivate doubleprivate static final Identifierprivate booleanprivate EFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionEntryListWidget(MinecraftClient client, int width, int height, int y, int itemHeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected voidaddEntryToTop(E entry) protected voidappendNarrations(NarrationMessageBuilder builder, E entry) protected voidcenterScrollOn(E entry) children()Gets a list of all child GUI elements.protected voidprotected booleanclickedHeader(int x, int y) Called when the header is clicked.protected voiddrawSelectionHighlight(DrawContext context, int y, int entryWidth, int entryHeight, int borderColor, int fillColor) protected voidenableScissor(DrawContext context) protected voidensureVisible(E entry) protected EgetEntry(int index) protected final EgetEntryAtPosition(double x, double y) protected intgetFirst()protected Eprotected intintprotected EgetNeighboringEntry(NavigationDirection direction) protected EgetNeighboringEntry(NavigationDirection direction, Predicate<E> predicate) protected EgetNeighboringEntry(NavigationDirection direction, Predicate<E> predicate, E selected) protected intgetRowBottom(int index) intintprotected intgetRowTop(int index) intdoubleprotected intReturns the selected entry of this entry list, ornullif there is none.getType()booleanisMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.protected booleanisSelectButton(int button) protected booleanisSelectedEntry(int index) private intprivate intprotected voidmethod_57713(DrawContext drawContext) protected voidmethod_57715(DrawContext drawContext) private intprotected booleanprotected intbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured.booleanmouseReleased(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured.booleanmouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.voidposition(int width, int height, int y) voidposition(int width, ThreePartsLayoutWidget layout) protected Eremove(int index) protected booleanremoveEntry(E entry) protected booleanremoveEntryWithoutScrolling(E entry) protected voidrenderDecorations(DrawContext context, int mouseX, int mouseY) protected voidrenderEntry(DrawContext context, int mouseX, int mouseY, float delta, int index, int x, int y, int entryWidth, int entryHeight) protected voidrenderHeader(DrawContext context, int x, int y) protected voidrenderList(DrawContext context, int mouseX, int mouseY, float delta) voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) protected voidreplaceEntries(Collection<E> newEntries) private voidscroll(int amount) (package private) voidsetEntryParentList(EntryListWidget.Entry<E> entry) voidsetFocused(@Nullable Element focused) protected voidsetRenderHeader(boolean renderHeader, int headerHeight) voidsetScrollAmount(double amount) voidsetSelected(E entry) protected voidupdateScrollingState(double mouseX, double mouseY, int button) Methods inherited from class net.minecraft.client.gui.widget.ContainerWidget
getNavigationPath, isDragging, isFocused, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendClickableNarrations, appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getWidth, getX, getY, isHovered, isNarratable, isSelected, isValidClickButton, method_57719, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods 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
getNavigationFocus, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, hoveredElement, keyPressed, keyReleasedMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
field_45909
protected static final int field_45909- See Also:
- Mappings:
Namespace Name Mixin selector official bLfdk;b:Iintermediary field_45909Lnet/minecraft/class_350;field_45909:Inamed field_45909Lnet/minecraft/client/gui/widget/EntryListWidget;field_45909:I
-
SCROLLER_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLfdk;a:Lajt;intermediary field_45908Lnet/minecraft/class_350;field_45908:Lnet/minecraft/class_2960;named SCROLLER_TEXTURELnet/minecraft/client/gui/widget/EntryListWidget;SCROLLER_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_49477
- Mappings:
Namespace Name Mixin selector official mLfdk;m:Lajt;intermediary field_49477Lnet/minecraft/class_350;field_49477:Lnet/minecraft/class_2960;named field_49477Lnet/minecraft/client/gui/widget/EntryListWidget;field_49477:Lnet/minecraft/util/Identifier;
-
field_49478
- Mappings:
Namespace Name Mixin selector official nLfdk;n:Lajt;intermediary field_49478Lnet/minecraft/class_350;field_49478:Lnet/minecraft/class_2960;named field_49478Lnet/minecraft/client/gui/widget/EntryListWidget;field_49478:Lnet/minecraft/util/Identifier;
-
client
- Mappings:
Namespace Name Mixin selector official cLfdk;c:Lfbp;intermediary field_22740Lnet/minecraft/class_350;field_22740:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/widget/EntryListWidget;client:Lnet/minecraft/client/MinecraftClient;
-
itemHeight
protected final int itemHeight- Mappings:
Namespace Name Mixin selector official dLfdk;d:Iintermediary field_22741Lnet/minecraft/class_350;field_22741:Inamed itemHeightLnet/minecraft/client/gui/widget/EntryListWidget;itemHeight:I
-
children
- Mappings:
Namespace Name Mixin selector official oLfdk;o:Ljava/util/List;intermediary field_22739Lnet/minecraft/class_350;field_22739:Ljava/util/List;named childrenLnet/minecraft/client/gui/widget/EntryListWidget;children:Ljava/util/List;
-
centerListVertically
protected boolean centerListVertically- Mappings:
Namespace Name Mixin selector official eLfdk;e:Zintermediary field_22744Lnet/minecraft/class_350;field_22744:Znamed centerListVerticallyLnet/minecraft/client/gui/widget/EntryListWidget;centerListVertically:Z
-
scrollAmount
private double scrollAmount- Mappings:
Namespace Name Mixin selector official pLfdk;p:Dintermediary field_22749Lnet/minecraft/class_350;field_22749:Dnamed scrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;scrollAmount:D
-
renderHeader
private boolean renderHeader- Mappings:
Namespace Name Mixin selector official qLfdk;q:Zintermediary field_22747Lnet/minecraft/class_350;field_22747:Znamed renderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;renderHeader:Z
-
headerHeight
protected int headerHeight- Mappings:
Namespace Name Mixin selector official fLfdk;f:Iintermediary field_22748Lnet/minecraft/class_350;field_22748:Inamed headerHeightLnet/minecraft/client/gui/widget/EntryListWidget;headerHeight:I
-
scrolling
private boolean scrolling- Mappings:
Namespace Name Mixin selector official rLfdk;r:Zintermediary field_22750Lnet/minecraft/class_350;field_22750:Znamed scrollingLnet/minecraft/client/gui/widget/EntryListWidget;scrolling:Z
-
selected
- Mappings:
Namespace Name Mixin selector official sLfdk;s:Lfdk$a;intermediary field_22751Lnet/minecraft/class_350;field_22751:Lnet/minecraft/class_350$class_351;named selectedLnet/minecraft/client/gui/widget/EntryListWidget;selected:Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
hoveredEntry
- Mappings:
Namespace Name Mixin selector official uLfdk;u:Lfdk$a;intermediary field_33780Lnet/minecraft/class_350;field_33780:Lnet/minecraft/class_350$class_351;named hoveredEntryLnet/minecraft/client/gui/widget/EntryListWidget;hoveredEntry:Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
-
Constructor Details
-
EntryListWidget
- Mappings:
Namespace Name Mixin selector official <init>Lfdk;<init>(Lfbp;IIII)Vintermediary <init>Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIII)Vnamed <init>Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIII)V
-
-
Method Details
-
setRenderHeader
protected void setRenderHeader(boolean renderHeader, int headerHeight) - Mappings:
Namespace Name Mixin selector official aLfdk;a(ZI)Vintermediary method_25315Lnet/minecraft/class_350;method_25315(ZI)Vnamed setRenderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;setRenderHeader(ZI)V
-
getRowWidth
public int getRowWidth()- Mappings:
Namespace Name Mixin selector official bLfdk;b()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getSelectedOrNull
Returns the selected entry of this entry list, ornullif there is none.- Returns:
- the selected entry of this entry list, or
nullif there is none - Mappings:
Namespace Name Mixin selector official hLfdk;h()Lfdk$a;intermediary method_25334Lnet/minecraft/class_350;method_25334()Lnet/minecraft/class_350$class_351;named getSelectedOrNullLnet/minecraft/client/gui/widget/EntryListWidget;getSelectedOrNull()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
setSelected
- Mappings:
Namespace Name Mixin selector official aLfdk;a(Lfdk$a;)Vintermediary method_25313Lnet/minecraft/class_350;method_25313(Lnet/minecraft/class_350$class_351;)Vnamed setSelectedLnet/minecraft/client/gui/widget/EntryListWidget;setSelected(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
getFirst
- Mappings:
Namespace Name Mixin selector official iLfdk;i()Lfdk$a;intermediary method_48200Lnet/minecraft/class_350;method_48200()Lnet/minecraft/class_350$class_351;named getFirstLnet/minecraft/client/gui/widget/EntryListWidget;getFirst()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
getFocused
Description copied from class:ContainerWidget- Specified by:
getFocusedin interfaceParentElement- Overrides:
getFocusedin classContainerWidget- Mappings:
Namespace Name Mixin selector official jLfdk;j()Lfdk$a;intermediary method_25336Lnet/minecraft/class_350;method_25336()Lnet/minecraft/class_350$class_351;named getFocusedLnet/minecraft/client/gui/widget/EntryListWidget;getFocused()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
children
Gets a list of all child GUI elements.- Mappings:
Namespace Name Mixin selector official aF_Lffk;aF_()Ljava/util/List;intermediary method_25396Lnet/minecraft/class_4069;method_25396()Ljava/util/List;named childrenLnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
-
clearEntries
protected void clearEntries()- Mappings:
Namespace Name Mixin selector official kLfdk;k()Vintermediary method_25339Lnet/minecraft/class_350;method_25339()Vnamed clearEntriesLnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
-
replaceEntries
- Mappings:
Namespace Name Mixin selector official aLfdk;a(Ljava/util/Collection;)Vintermediary method_25314Lnet/minecraft/class_350;method_25314(Ljava/util/Collection;)Vnamed replaceEntriesLnet/minecraft/client/gui/widget/EntryListWidget;replaceEntries(Ljava/util/Collection;)V
-
getEntry
- Mappings:
Namespace Name Mixin selector official dLfdk;d(I)Lfdk$a;intermediary method_25326Lnet/minecraft/class_350;method_25326(I)Lnet/minecraft/class_350$class_351;named getEntryLnet/minecraft/client/gui/widget/EntryListWidget;getEntry(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
addEntry
- Mappings:
Namespace Name Mixin selector official bLfdk;b(Lfdk$a;)Iintermediary method_25321Lnet/minecraft/class_350;method_25321(Lnet/minecraft/class_350$class_351;)Inamed addEntryLnet/minecraft/client/gui/widget/EntryListWidget;addEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)I
-
addEntryToTop
- Mappings:
Namespace Name Mixin selector official cLfdk;c(Lfdk$a;)Vintermediary method_44399Lnet/minecraft/class_350;method_44399(Lnet/minecraft/class_350$class_351;)Vnamed addEntryToTopLnet/minecraft/client/gui/widget/EntryListWidget;addEntryToTop(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
removeEntryWithoutScrolling
- Mappings:
Namespace Name Mixin selector official dLfdk;d(Lfdk$a;)Zintermediary method_44650Lnet/minecraft/class_350;method_44650(Lnet/minecraft/class_350$class_351;)Znamed removeEntryWithoutScrollingLnet/minecraft/client/gui/widget/EntryListWidget;removeEntryWithoutScrolling(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)Z
-
getEntryCount
protected int getEntryCount()- Mappings:
Namespace Name Mixin selector official lLfdk;l()Iintermediary method_25340Lnet/minecraft/class_350;method_25340()Inamed getEntryCountLnet/minecraft/client/gui/widget/EntryListWidget;getEntryCount()I
-
isSelectedEntry
protected boolean isSelectedEntry(int index) - Mappings:
Namespace Name Mixin selector official eLfdk;e(I)Zintermediary method_25332Lnet/minecraft/class_350;method_25332(I)Znamed isSelectedEntryLnet/minecraft/client/gui/widget/EntryListWidget;isSelectedEntry(I)Z
-
getEntryAtPosition
- Mappings:
Namespace Name Mixin selector official bLfdk;b(DD)Lfdk$a;intermediary method_25308Lnet/minecraft/class_350;method_25308(DD)Lnet/minecraft/class_350$class_351;named getEntryAtPositionLnet/minecraft/client/gui/widget/EntryListWidget;getEntryAtPosition(DD)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
position
- Mappings:
Namespace Name Mixin selector official aLfdk;a(ILfhc;)Vintermediary method_57712Lnet/minecraft/class_350;method_57712(ILnet/minecraft/class_8132;)Vnamed positionLnet/minecraft/client/gui/widget/EntryListWidget;position(ILnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;)V
-
position
public void position(int width, int height, int y) - Mappings:
Namespace Name Mixin selector official bLfdk;b(III)Vintermediary method_57714Lnet/minecraft/class_350;method_57714(III)Vnamed positionLnet/minecraft/client/gui/widget/EntryListWidget;position(III)V
-
getMaxPosition
protected int getMaxPosition()- Mappings:
Namespace Name Mixin selector official aLfdk;a()Iintermediary method_25317Lnet/minecraft/class_350;method_25317()Inamed getMaxPositionLnet/minecraft/client/gui/widget/EntryListWidget;getMaxPosition()I
-
clickedHeader
protected boolean clickedHeader(int x, int y) Called when the header is clicked.- Returns:
trueto indicate that the event handling is successful/valid- Mappings:
Namespace Name Mixin selector official aLfdk;a(II)Zintermediary method_25310Lnet/minecraft/class_350;method_25310(II)Znamed clickedHeaderLnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)Z
-
renderHeader
- Mappings:
Namespace Name Mixin selector official aLfdk;a(Lfdc;II)Vintermediary method_25312Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_332;II)Vnamed renderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/gui/DrawContext;II)V
-
renderDecorations
- Mappings:
Namespace Name Mixin selector official bLfdk;b(Lfdc;II)Vintermediary method_25320Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_332;II)Vnamed renderDecorationsLnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/gui/DrawContext;II)V
-
renderWidget
- Specified by:
renderWidgetin classClickableWidget- Mappings:
Namespace Name Mixin selector official bLfdn;b(Lfdc;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vnamed renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
method_57717
protected boolean method_57717()- Mappings:
Namespace Name Mixin selector official mLfdk;m()Zintermediary method_57717Lnet/minecraft/class_350;method_57717()Znamed method_57717Lnet/minecraft/client/gui/widget/EntryListWidget;method_57717()Z
-
method_57713
- Mappings:
Namespace Name Mixin selector official aLfdk;a(Lfdc;)Vintermediary method_57713Lnet/minecraft/class_350;method_57713(Lnet/minecraft/class_332;)Vnamed method_57713Lnet/minecraft/client/gui/widget/EntryListWidget;method_57713(Lnet/minecraft/client/gui/DrawContext;)V
-
method_57715
- Mappings:
Namespace Name Mixin selector official bLfdk;b(Lfdc;)Vintermediary method_57715Lnet/minecraft/class_350;method_57715(Lnet/minecraft/class_332;)Vnamed method_57715Lnet/minecraft/client/gui/widget/EntryListWidget;method_57715(Lnet/minecraft/client/gui/DrawContext;)V
-
enableScissor
- Mappings:
Namespace Name Mixin selector official cLfdk;c(Lfdc;)Vintermediary method_49603Lnet/minecraft/class_350;method_49603(Lnet/minecraft/class_332;)Vnamed enableScissorLnet/minecraft/client/gui/widget/EntryListWidget;enableScissor(Lnet/minecraft/client/gui/DrawContext;)V
-
centerScrollOn
- Mappings:
Namespace Name Mixin selector official eLfdk;e(Lfdk$a;)Vintermediary method_25324Lnet/minecraft/class_350;method_25324(Lnet/minecraft/class_350$class_351;)Vnamed centerScrollOnLnet/minecraft/client/gui/widget/EntryListWidget;centerScrollOn(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
ensureVisible
- Mappings:
Namespace Name Mixin selector official fLfdk;f(Lfdk$a;)Vintermediary method_25328Lnet/minecraft/class_350;method_25328(Lnet/minecraft/class_350$class_351;)Vnamed ensureVisibleLnet/minecraft/client/gui/widget/EntryListWidget;ensureVisible(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
scroll
private void scroll(int amount) - Mappings:
Namespace Name Mixin selector official aLfdk;a(I)Vintermediary method_25309Lnet/minecraft/class_350;method_25309(I)Vnamed scrollLnet/minecraft/client/gui/widget/EntryListWidget;scroll(I)V
-
getScrollAmount
public double getScrollAmount()- Mappings:
Namespace Name Mixin selector official nLfdk;n()Dintermediary method_25341Lnet/minecraft/class_350;method_25341()Dnamed getScrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;getScrollAmount()D
-
setScrollAmount
public void setScrollAmount(double amount) - Mappings:
Namespace Name Mixin selector official aLfdk;a(D)Vintermediary method_25307Lnet/minecraft/class_350;method_25307(D)Vnamed setScrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;setScrollAmount(D)V
-
getMaxScroll
public int getMaxScroll()- Mappings:
Namespace Name Mixin selector official oLfdk;o()Iintermediary method_25331Lnet/minecraft/class_350;method_25331()Inamed getMaxScrollLnet/minecraft/client/gui/widget/EntryListWidget;getMaxScroll()I
-
updateScrollingState
protected void updateScrollingState(double mouseX, double mouseY, int button) - Mappings:
Namespace Name Mixin selector official cLfdk;c(DDI)Vintermediary method_25318Lnet/minecraft/class_350;method_25318(DDI)Vnamed updateScrollingStateLnet/minecraft/client/gui/widget/EntryListWidget;updateScrollingState(DDI)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Mappings:
Namespace Name Mixin selector official pLfdk;p()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
method_57718
protected int method_57718()- Mappings:
Namespace Name Mixin selector official qLfdk;q()Iintermediary method_57718Lnet/minecraft/class_350;method_57718()Inamed method_57718Lnet/minecraft/client/gui/widget/EntryListWidget;method_57718()I
-
method_57716
private int method_57716()- Mappings:
Namespace Name Mixin selector official dLfdk;d()Iintermediary method_57716Lnet/minecraft/class_350;method_57716()Inamed method_57716Lnet/minecraft/client/gui/widget/EntryListWidget;method_57716()I
-
isSelectButton
protected boolean isSelectButton(int button) - Mappings:
Namespace Name Mixin selector official fLfdk;f(I)Zintermediary method_53812Lnet/minecraft/class_350;method_53812(I)Znamed isSelectButtonLnet/minecraft/client/gui/widget/EntryListWidget;isSelectButton(I)Z
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Specified by:
mouseClickedin interfaceParentElement- Overrides:
mouseClickedin classContainerWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLffl;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseReleasedin interfaceElement- Specified by:
mouseReleasedin interfaceParentElement- Overrides:
mouseReleasedin classContainerWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official bLffl;b(DDI)Zintermediary method_25406Lnet/minecraft/class_364;method_25406(DDI)Znamed mouseReleasedLnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseDraggedin interfaceElement- Specified by:
mouseDraggedin interfaceParentElement- Overrides:
mouseDraggedin classContainerWidget- Parameters:
mouseX- the current X coordinate of the mousemouseY- the current Y coordinate of the mousebutton- the mouse button numberdeltaX- the difference of the current X with the previous X coordinatedeltaY- the difference of the current Y with the previous Y coordinate- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLffl;a(DDIDD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Znamed mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehorizontalAmount- the horizontal scroll amountverticalAmount- the vertical scroll amount- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLffl;a(DDDD)Zintermediary method_25401Lnet/minecraft/class_364;method_25401(DDDD)Znamed mouseScrolledLnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Z
-
setFocused
- Specified by:
setFocusedin interfaceParentElement- Overrides:
setFocusedin classContainerWidget- Mappings:
Namespace Name Mixin selector official aLffk;a(Lffl;)Vintermediary method_25395Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)Vnamed setFocusedLnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Overrides:
isMouseOverin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector official cLffl;c(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
renderList
- Mappings:
Namespace Name Mixin selector official cLfdk;c(Lfdc;IIF)Vintermediary method_25311Lnet/minecraft/class_350;method_25311(Lnet/minecraft/class_332;IIF)Vnamed renderListLnet/minecraft/client/gui/widget/EntryListWidget;renderList(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
renderEntry
protected void renderEntry(DrawContext context, int mouseX, int mouseY, float delta, int index, int x, int y, int entryWidth, int entryHeight) - Mappings:
Namespace Name Mixin selector official aLfdk;a(Lfdc;IIFIIIII)Vintermediary method_44397Lnet/minecraft/class_350;method_44397(Lnet/minecraft/class_332;IIFIIIII)Vnamed renderEntryLnet/minecraft/client/gui/widget/EntryListWidget;renderEntry(Lnet/minecraft/client/gui/DrawContext;IIFIIIII)V
-
drawSelectionHighlight
protected void drawSelectionHighlight(DrawContext context, int y, int entryWidth, int entryHeight, int borderColor, int fillColor) - Mappings:
Namespace Name Mixin selector official aLfdk;a(Lfdc;IIIII)Vintermediary method_44398Lnet/minecraft/class_350;method_44398(Lnet/minecraft/class_332;IIIII)Vnamed drawSelectionHighlightLnet/minecraft/client/gui/widget/EntryListWidget;drawSelectionHighlight(Lnet/minecraft/client/gui/DrawContext;IIIII)V
-
getRowLeft
public int getRowLeft()- Mappings:
Namespace Name Mixin selector official rLfdk;r()Iintermediary method_25342Lnet/minecraft/class_350;method_25342()Inamed getRowLeftLnet/minecraft/client/gui/widget/EntryListWidget;getRowLeft()I
-
method_57710
private int method_57710()- Mappings:
Namespace Name Mixin selector official ILfdk;I()Iintermediary method_57710Lnet/minecraft/class_350;method_57710()Inamed method_57710Lnet/minecraft/client/gui/widget/EntryListWidget;method_57710()I
-
getRowRight
public int getRowRight()- Mappings:
Namespace Name Mixin selector official sLfdk;s()Iintermediary method_31383Lnet/minecraft/class_350;method_31383()Inamed getRowRightLnet/minecraft/client/gui/widget/EntryListWidget;getRowRight()I
-
method_57711
private int method_57711()- Mappings:
Namespace Name Mixin selector official JLfdk;J()Iintermediary method_57711Lnet/minecraft/class_350;method_57711()Inamed method_57711Lnet/minecraft/client/gui/widget/EntryListWidget;method_57711()I
-
getRowTop
protected int getRowTop(int index) - Mappings:
Namespace Name Mixin selector official gLfdk;g(I)Iintermediary method_25337Lnet/minecraft/class_350;method_25337(I)Inamed getRowTopLnet/minecraft/client/gui/widget/EntryListWidget;getRowTop(I)I
-
getRowBottom
protected int getRowBottom(int index) - Mappings:
Namespace Name Mixin selector official hLfdk;h(I)Iintermediary method_25319Lnet/minecraft/class_350;method_25319(I)Inamed getRowBottomLnet/minecraft/client/gui/widget/EntryListWidget;getRowBottom(I)I
-
getType
- Specified by:
getTypein interfaceSelectable- Overrides:
getTypein classClickableWidget- Mappings:
Namespace Name Mixin selector official tLfhj;t()Lfhj$a;intermediary method_37018Lnet/minecraft/class_6379;method_37018()Lnet/minecraft/class_6379$class_6380;named getTypeLnet/minecraft/client/gui/Selectable;getType()Lnet/minecraft/client/gui/Selectable$SelectionType;
-
remove
- Mappings:
Namespace Name Mixin selector official iLfdk;i(I)Lfdk$a;intermediary method_25338Lnet/minecraft/class_350;method_25338(I)Lnet/minecraft/class_350$class_351;named removeLnet/minecraft/client/gui/widget/EntryListWidget;remove(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
removeEntry
- Mappings:
Namespace Name Mixin selector official gLfdk;g(Lfdk$a;)Zintermediary method_25330Lnet/minecraft/class_350;method_25330(Lnet/minecraft/class_350$class_351;)Znamed removeEntryLnet/minecraft/client/gui/widget/EntryListWidget;removeEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)Z
-
getHoveredEntry
- Mappings:
Namespace Name Mixin selector official uLfdk;u()Lfdk$a;intermediary method_37019Lnet/minecraft/class_350;method_37019()Lnet/minecraft/class_350$class_351;named getHoveredEntryLnet/minecraft/client/gui/widget/EntryListWidget;getHoveredEntry()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
setEntryParentList
- Mappings:
Namespace Name Mixin selector official hLfdk;h(Lfdk$a;)Vintermediary method_29621Lnet/minecraft/class_350;method_29621(Lnet/minecraft/class_350$class_351;)Vnamed setEntryParentListLnet/minecraft/client/gui/widget/EntryListWidget;setEntryParentList(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
appendNarrations
- Mappings:
Namespace Name Mixin selector official aLfdk;a(Lfhl;Lfdk$a;)Vintermediary method_37017Lnet/minecraft/class_350;method_37017(Lnet/minecraft/class_6382;Lnet/minecraft/class_350$class_351;)Vnamed appendNarrationsLnet/minecraft/client/gui/widget/EntryListWidget;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-