Package net.minecraft.client.gui.widget
Class EntryListWidget<E extends EntryListWidget.Entry<E>>
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,ParentElement,Selectable
- Direct Known Subclasses:
AlwaysSelectedEntryListWidget,ElementListWidget
@Environment(CLIENT)
public abstract class EntryListWidget<E extends EntryListWidget.Entry<E>>
extends AbstractParentElement
implements Drawable, Selectable
- Mappings:
Namespace Name intermediary net/minecraft/class_350official eounamed 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 intprotected booleanprotected final MinecraftClientprotected intprotected intprivate Eprotected final intprotected intprivate booleanprivate booleanprivate booleanprivate booleanprotected intprivate doubleprivate booleanprivate Eprotected intprotected intFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionEntryListWidget(MinecraftClient client, int width, int height, int top, int bottom, 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 final voidprotected voidclickedHeader(int x, int y) 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 booleanisSelectedEntry(int index) 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 amount) Callback for when a mouse button scroll event has been captured.protected Eremove(int index) protected booleanremoveEntry(E entry) protected booleanremoveEntryWithoutScrolling(E entry) voidrender(DrawContext context, int mouseX, int mouseY, float delta) protected voidrenderBackground(DrawContext context) 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) protected voidreplaceEntries(Collection<E> newEntries) private voidscroll(int amount) (package private) voidsetEntryParentList(EntryListWidget.Entry<E> entry) voidsetFocused(@Nullable Element focused) voidsetLeftPos(int left) voidsetRenderBackground(boolean renderBackground) protected voidsetRenderHeader(boolean renderHeader, int headerHeight) voidsetRenderHorizontalShadows(boolean renderHorizontalShadows) voidsetRenderSelection(boolean renderSelection) voidsetScrollAmount(double amount) voidsetSelected(E entry) protected voidupdateScrollingState(double mouseX, double mouseY, int button) voidupdateSize(int width, int height, int top, int bottom) Methods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDraggingMethods 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.Narratable
appendNarrationsMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyPressed, keyReleased, setFocusedMethods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector intermediary field_22740Lnet/minecraft/class_350;field_22740:Lnet/minecraft/class_310;official bLeou;b:Lenf;named clientLnet/minecraft/client/gui/widget/EntryListWidget;client:Lnet/minecraft/client/MinecraftClient;
-
itemHeight
protected final int itemHeight- Mappings:
Namespace Name Mixin selector intermediary field_22741Lnet/minecraft/class_350;field_22741:Iofficial cLeou;c:Inamed itemHeightLnet/minecraft/client/gui/widget/EntryListWidget;itemHeight:I
-
children
- Mappings:
Namespace Name Mixin selector intermediary field_22739Lnet/minecraft/class_350;field_22739:Ljava/util/List;official aLeou;a:Ljava/util/List;named childrenLnet/minecraft/client/gui/widget/EntryListWidget;children:Ljava/util/List;
-
width
protected int width- Mappings:
Namespace Name Mixin selector intermediary field_22742Lnet/minecraft/class_350;field_22742:Iofficial dLeou;d:Inamed widthLnet/minecraft/client/gui/widget/EntryListWidget;width:I
-
height
protected int height- Mappings:
Namespace Name Mixin selector intermediary field_22743Lnet/minecraft/class_350;field_22743:Iofficial eLeou;e:Inamed heightLnet/minecraft/client/gui/widget/EntryListWidget;height:I
-
top
protected int top- Mappings:
Namespace Name Mixin selector intermediary field_19085Lnet/minecraft/class_350;field_19085:Iofficial fLeou;f:Inamed topLnet/minecraft/client/gui/widget/EntryListWidget;top:I
-
bottom
protected int bottom- Mappings:
Namespace Name Mixin selector intermediary field_19086Lnet/minecraft/class_350;field_19086:Iofficial gLeou;g:Inamed bottomLnet/minecraft/client/gui/widget/EntryListWidget;bottom:I
-
right
protected int right- Mappings:
Namespace Name Mixin selector intermediary field_19087Lnet/minecraft/class_350;field_19087:Iofficial hLeou;h:Inamed rightLnet/minecraft/client/gui/widget/EntryListWidget;right:I
-
left
protected int left- Mappings:
Namespace Name Mixin selector intermediary field_19088Lnet/minecraft/class_350;field_19088:Iofficial iLeou;i:Inamed leftLnet/minecraft/client/gui/widget/EntryListWidget;left:I
-
centerListVertically
protected boolean centerListVertically- Mappings:
Namespace Name Mixin selector intermediary field_22744Lnet/minecraft/class_350;field_22744:Zofficial jLeou;j:Znamed centerListVerticallyLnet/minecraft/client/gui/widget/EntryListWidget;centerListVertically:Z
-
scrollAmount
private double scrollAmount- Mappings:
Namespace Name Mixin selector intermediary field_22749Lnet/minecraft/class_350;field_22749:Dofficial lLeou;l:Dnamed scrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;scrollAmount:D
-
renderSelection
private boolean renderSelection- Mappings:
Namespace Name Mixin selector intermediary field_22746Lnet/minecraft/class_350;field_22746:Zofficial mLeou;m:Znamed renderSelectionLnet/minecraft/client/gui/widget/EntryListWidget;renderSelection:Z
-
renderHeader
private boolean renderHeader- Mappings:
Namespace Name Mixin selector intermediary field_22747Lnet/minecraft/class_350;field_22747:Zofficial nLeou;n:Znamed renderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;renderHeader:Z
-
headerHeight
protected int headerHeight- Mappings:
Namespace Name Mixin selector intermediary field_22748Lnet/minecraft/class_350;field_22748:Iofficial kLeou;k:Inamed headerHeightLnet/minecraft/client/gui/widget/EntryListWidget;headerHeight:I
-
scrolling
private boolean scrolling- Mappings:
Namespace Name Mixin selector intermediary field_22750Lnet/minecraft/class_350;field_22750:Zofficial oLeou;o:Znamed scrollingLnet/minecraft/client/gui/widget/EntryListWidget;scrolling:Z
-
selected
- Mappings:
Namespace Name Mixin selector intermediary field_22751Lnet/minecraft/class_350;field_22751:Lnet/minecraft/class_350$class_351;official pLeou;p:Leou$a;named selectedLnet/minecraft/client/gui/widget/EntryListWidget;selected:Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
renderBackground
private boolean renderBackground- Mappings:
Namespace Name Mixin selector intermediary field_26846Lnet/minecraft/class_350;field_26846:Zofficial qLeou;q:Znamed renderBackgroundLnet/minecraft/client/gui/widget/EntryListWidget;renderBackground:Z
-
renderHorizontalShadows
private boolean renderHorizontalShadows- Mappings:
Namespace Name Mixin selector intermediary field_26847Lnet/minecraft/class_350;field_26847:Zofficial rLeou;r:Znamed renderHorizontalShadowsLnet/minecraft/client/gui/widget/EntryListWidget;renderHorizontalShadows:Z
-
hoveredEntry
- Mappings:
Namespace Name Mixin selector intermediary field_33780Lnet/minecraft/class_350;field_33780:Lnet/minecraft/class_350$class_351;official sLeou;s:Leou$a;named hoveredEntryLnet/minecraft/client/gui/widget/EntryListWidget;hoveredEntry:Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
-
Constructor Details
-
EntryListWidget
public EntryListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIIII)Vofficial <init>Leou;<init>(Lenf;IIIII)Vnamed <init>Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
-
-
Method Details
-
setRenderSelection
public void setRenderSelection(boolean renderSelection) - Mappings:
Namespace Name Mixin selector intermediary method_29344Lnet/minecraft/class_350;method_29344(Z)Vofficial aLeou;a(Z)Vnamed setRenderSelectionLnet/minecraft/client/gui/widget/EntryListWidget;setRenderSelection(Z)V
-
setRenderHeader
protected void setRenderHeader(boolean renderHeader, int headerHeight) - Mappings:
Namespace Name Mixin selector intermediary method_25315Lnet/minecraft/class_350;method_25315(ZI)Vofficial aLeou;a(ZI)Vnamed setRenderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;setRenderHeader(ZI)V
-
getRowWidth
public int getRowWidth()- Mappings:
Namespace Name Mixin selector intermediary method_25322Lnet/minecraft/class_350;method_25322()Iofficial bLeou;b()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 intermediary method_25334Lnet/minecraft/class_350;method_25334()Lnet/minecraft/class_350$class_351;official fLeou;f()Leou$a;named getSelectedOrNullLnet/minecraft/client/gui/widget/EntryListWidget;getSelectedOrNull()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
setSelected
- Mappings:
Namespace Name Mixin selector intermediary method_25313Lnet/minecraft/class_350;method_25313(Lnet/minecraft/class_350$class_351;)Vofficial aLeou;a(Leou$a;)Vnamed setSelectedLnet/minecraft/client/gui/widget/EntryListWidget;setSelected(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
getFirst
- Mappings:
Namespace Name Mixin selector intermediary method_48200Lnet/minecraft/class_350;method_48200()Lnet/minecraft/class_350$class_351;official gLeou;g()Leou$a;named getFirstLnet/minecraft/client/gui/widget/EntryListWidget;getFirst()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
setRenderBackground
public void setRenderBackground(boolean renderBackground) - Mappings:
Namespace Name Mixin selector intermediary method_31322Lnet/minecraft/class_350;method_31322(Z)Vofficial bLeou;b(Z)Vnamed setRenderBackgroundLnet/minecraft/client/gui/widget/EntryListWidget;setRenderBackground(Z)V
-
setRenderHorizontalShadows
public void setRenderHorizontalShadows(boolean renderHorizontalShadows) - Mappings:
Namespace Name Mixin selector intermediary method_31323Lnet/minecraft/class_350;method_31323(Z)Vofficial cLeou;c(Z)Vnamed setRenderHorizontalShadowsLnet/minecraft/client/gui/widget/EntryListWidget;setRenderHorizontalShadows(Z)V
-
getFocused
Description copied from class:AbstractParentElement- Specified by:
getFocusedin interfaceParentElement- Overrides:
getFocusedin classAbstractParentElement- Mappings:
Namespace Name Mixin selector intermediary method_25336Lnet/minecraft/class_350;method_25336()Lnet/minecraft/class_350$class_351;official hLeou;h()Leou$a;named getFocusedLnet/minecraft/client/gui/widget/EntryListWidget;getFocused()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
children
Gets a list of all child GUI elements.- Specified by:
childrenin interfaceParentElement- Mappings:
Namespace Name Mixin selector intermediary method_25396Lnet/minecraft/class_4069;method_25396()Ljava/util/List;official iLeqj;i()Ljava/util/List;named childrenLnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
-
clearEntries
protected final void clearEntries()- Mappings:
Namespace Name Mixin selector intermediary method_25339Lnet/minecraft/class_350;method_25339()Vofficial jLeou;j()Vnamed clearEntriesLnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
-
replaceEntries
- Mappings:
Namespace Name Mixin selector intermediary method_25314Lnet/minecraft/class_350;method_25314(Ljava/util/Collection;)Vofficial aLeou;a(Ljava/util/Collection;)Vnamed replaceEntriesLnet/minecraft/client/gui/widget/EntryListWidget;replaceEntries(Ljava/util/Collection;)V
-
getEntry
- Mappings:
Namespace Name Mixin selector intermediary method_25326Lnet/minecraft/class_350;method_25326(I)Lnet/minecraft/class_350$class_351;official dLeou;d(I)Leou$a;named getEntryLnet/minecraft/client/gui/widget/EntryListWidget;getEntry(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
addEntry
- Mappings:
Namespace Name Mixin selector intermediary method_25321Lnet/minecraft/class_350;method_25321(Lnet/minecraft/class_350$class_351;)Iofficial bLeou;b(Leou$a;)Inamed addEntryLnet/minecraft/client/gui/widget/EntryListWidget;addEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)I
-
addEntryToTop
- Mappings:
Namespace Name Mixin selector intermediary method_44399Lnet/minecraft/class_350;method_44399(Lnet/minecraft/class_350$class_351;)Vofficial cLeou;c(Leou$a;)Vnamed addEntryToTopLnet/minecraft/client/gui/widget/EntryListWidget;addEntryToTop(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
removeEntryWithoutScrolling
- Mappings:
Namespace Name Mixin selector intermediary method_44650Lnet/minecraft/class_350;method_44650(Lnet/minecraft/class_350$class_351;)Zofficial dLeou;d(Leou$a;)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 intermediary method_25340Lnet/minecraft/class_350;method_25340()Iofficial kLeou;k()Inamed getEntryCountLnet/minecraft/client/gui/widget/EntryListWidget;getEntryCount()I
-
isSelectedEntry
protected boolean isSelectedEntry(int index) - Mappings:
Namespace Name Mixin selector intermediary method_25332Lnet/minecraft/class_350;method_25332(I)Zofficial eLeou;e(I)Znamed isSelectedEntryLnet/minecraft/client/gui/widget/EntryListWidget;isSelectedEntry(I)Z
-
getEntryAtPosition
- Mappings:
Namespace Name Mixin selector intermediary method_25308Lnet/minecraft/class_350;method_25308(DD)Lnet/minecraft/class_350$class_351;official aLeou;a(DD)Leou$a;named getEntryAtPositionLnet/minecraft/client/gui/widget/EntryListWidget;getEntryAtPosition(DD)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
updateSize
public void updateSize(int width, int height, int top, int bottom) - Mappings:
Namespace Name Mixin selector intermediary method_25323Lnet/minecraft/class_350;method_25323(IIII)Vofficial aLeou;a(IIII)Vnamed updateSizeLnet/minecraft/client/gui/widget/EntryListWidget;updateSize(IIII)V
-
setLeftPos
public void setLeftPos(int left) - Mappings:
Namespace Name Mixin selector intermediary method_25333Lnet/minecraft/class_350;method_25333(I)Vofficial fLeou;f(I)Vnamed setLeftPosLnet/minecraft/client/gui/widget/EntryListWidget;setLeftPos(I)V
-
getMaxPosition
protected int getMaxPosition()- Mappings:
Namespace Name Mixin selector intermediary method_25317Lnet/minecraft/class_350;method_25317()Iofficial aLeou;a()Inamed getMaxPositionLnet/minecraft/client/gui/widget/EntryListWidget;getMaxPosition()I
-
clickedHeader
protected void clickedHeader(int x, int y) - Mappings:
Namespace Name Mixin selector intermediary method_25310Lnet/minecraft/class_350;method_25310(II)Vofficial aLeou;a(II)Vnamed clickedHeaderLnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)V
-
renderHeader
- Mappings:
Namespace Name Mixin selector intermediary method_25312Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_332;II)Vofficial aLeou;a(Leop;II)Vnamed renderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/gui/DrawContext;II)V
-
renderBackground
- Mappings:
Namespace Name Mixin selector intermediary method_25325Lnet/minecraft/class_350;method_25325(Lnet/minecraft/class_332;)Vofficial aLeou;a(Leop;)Vnamed renderBackgroundLnet/minecraft/client/gui/widget/EntryListWidget;renderBackground(Lnet/minecraft/client/gui/DrawContext;)V
-
renderDecorations
- Mappings:
Namespace Name Mixin selector intermediary method_25320Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_332;II)Vofficial bLeou;b(Leop;II)Vnamed renderDecorationsLnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/gui/DrawContext;II)V
-
render
- Specified by:
renderin interfaceDrawable- Mappings:
Namespace Name Mixin selector intermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLepy;a(Leop;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
enableScissor
- Mappings:
Namespace Name Mixin selector intermediary method_49603Lnet/minecraft/class_350;method_49603(Lnet/minecraft/class_332;)Vofficial bLeou;b(Leop;)Vnamed enableScissorLnet/minecraft/client/gui/widget/EntryListWidget;enableScissor(Lnet/minecraft/client/gui/DrawContext;)V
-
centerScrollOn
- Mappings:
Namespace Name Mixin selector intermediary method_25324Lnet/minecraft/class_350;method_25324(Lnet/minecraft/class_350$class_351;)Vofficial eLeou;e(Leou$a;)Vnamed centerScrollOnLnet/minecraft/client/gui/widget/EntryListWidget;centerScrollOn(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
ensureVisible
- Mappings:
Namespace Name Mixin selector intermediary method_25328Lnet/minecraft/class_350;method_25328(Lnet/minecraft/class_350$class_351;)Vofficial fLeou;f(Leou$a;)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 intermediary method_25309Lnet/minecraft/class_350;method_25309(I)Vofficial aLeou;a(I)Vnamed scrollLnet/minecraft/client/gui/widget/EntryListWidget;scroll(I)V
-
getScrollAmount
public double getScrollAmount()- Mappings:
Namespace Name Mixin selector intermediary method_25341Lnet/minecraft/class_350;method_25341()Dofficial lLeou;l()Dnamed getScrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;getScrollAmount()D
-
setScrollAmount
public void setScrollAmount(double amount) - Mappings:
Namespace Name Mixin selector intermediary method_25307Lnet/minecraft/class_350;method_25307(D)Vofficial aLeou;a(D)Vnamed setScrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;setScrollAmount(D)V
-
getMaxScroll
public int getMaxScroll()- Mappings:
Namespace Name Mixin selector intermediary method_25331Lnet/minecraft/class_350;method_25331()Iofficial mLeou;m()Inamed getMaxScrollLnet/minecraft/client/gui/widget/EntryListWidget;getMaxScroll()I
-
method_35721
public int method_35721()- Mappings:
Namespace Name Mixin selector intermediary method_35721Lnet/minecraft/class_350;method_35721()Iofficial nLeou;n()Inamed method_35721Lnet/minecraft/client/gui/widget/EntryListWidget;method_35721()I
-
updateScrollingState
protected void updateScrollingState(double mouseX, double mouseY, int button) - Mappings:
Namespace Name Mixin selector intermediary method_25318Lnet/minecraft/class_350;method_25318(DDI)Vofficial cLeou;c(DDI)Vnamed updateScrollingStateLnet/minecraft/client/gui/widget/EntryListWidget;updateScrollingState(DDI)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Mappings:
Namespace Name Mixin selector intermediary method_25329Lnet/minecraft/class_350;method_25329()Iofficial cLeou;c()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
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- 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 intermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLeqk;a(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- 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 intermediary method_25406Lnet/minecraft/class_364;method_25406(DDI)Zofficial bLeqk;b(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- 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 intermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Zofficial aLeqk;a(DDIDD)Znamed mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.- Specified by:
mouseScrolledin interfaceElement- Specified by:
mouseScrolledin interfaceParentElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouseamount- value is< 0if scrolled down,> 0if scrolled up- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_25401Lnet/minecraft/class_364;method_25401(DDD)Zofficial aLeqk;a(DDD)Znamed mouseScrolledLnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
-
setFocused
- Specified by:
setFocusedin interfaceParentElement- Overrides:
setFocusedin classAbstractParentElement- Mappings:
Namespace Name Mixin selector intermediary method_25395Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)Vofficial aLeqj;a(Leqk;)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- 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 intermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Zofficial a_Leqk;a_(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
renderList
- Mappings:
Namespace Name Mixin selector intermediary method_25311Lnet/minecraft/class_350;method_25311(Lnet/minecraft/class_332;IIF)Vofficial bLeou;b(Leop;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 intermediary method_44397Lnet/minecraft/class_350;method_44397(Lnet/minecraft/class_332;IIFIIIII)Vofficial aLeou;a(Leop;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 intermediary method_44398Lnet/minecraft/class_350;method_44398(Lnet/minecraft/class_332;IIIII)Vofficial aLeou;a(Leop;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 intermediary method_25342Lnet/minecraft/class_350;method_25342()Iofficial oLeou;o()Inamed getRowLeftLnet/minecraft/client/gui/widget/EntryListWidget;getRowLeft()I
-
getRowRight
public int getRowRight()- Mappings:
Namespace Name Mixin selector intermediary method_31383Lnet/minecraft/class_350;method_31383()Iofficial pLeou;p()Inamed getRowRightLnet/minecraft/client/gui/widget/EntryListWidget;getRowRight()I
-
getRowTop
protected int getRowTop(int index) - Mappings:
Namespace Name Mixin selector intermediary method_25337Lnet/minecraft/class_350;method_25337(I)Iofficial gLeou;g(I)Inamed getRowTopLnet/minecraft/client/gui/widget/EntryListWidget;getRowTop(I)I
-
getRowBottom
protected int getRowBottom(int index) - Mappings:
Namespace Name Mixin selector intermediary method_25319Lnet/minecraft/class_350;method_25319(I)Iofficial hLeou;h(I)Inamed getRowBottomLnet/minecraft/client/gui/widget/EntryListWidget;getRowBottom(I)I
-
getType
- Specified by:
getTypein interfaceSelectable- Mappings:
Namespace Name Mixin selector intermediary method_37018Lnet/minecraft/class_6379;method_37018()Lnet/minecraft/class_6379$class_6380;official qLese;q()Lese$a;named getTypeLnet/minecraft/client/gui/Selectable;getType()Lnet/minecraft/client/gui/Selectable$SelectionType;
-
remove
- Mappings:
Namespace Name Mixin selector intermediary method_25338Lnet/minecraft/class_350;method_25338(I)Lnet/minecraft/class_350$class_351;official iLeou;i(I)Leou$a;named removeLnet/minecraft/client/gui/widget/EntryListWidget;remove(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
removeEntry
- Mappings:
Namespace Name Mixin selector intermediary method_25330Lnet/minecraft/class_350;method_25330(Lnet/minecraft/class_350$class_351;)Zofficial gLeou;g(Leou$a;)Znamed removeEntryLnet/minecraft/client/gui/widget/EntryListWidget;removeEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)Z
-
getHoveredEntry
- Mappings:
Namespace Name Mixin selector intermediary method_37019Lnet/minecraft/class_350;method_37019()Lnet/minecraft/class_350$class_351;official rLeou;r()Leou$a;named getHoveredEntryLnet/minecraft/client/gui/widget/EntryListWidget;getHoveredEntry()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
setEntryParentList
- Mappings:
Namespace Name Mixin selector intermediary method_29621Lnet/minecraft/class_350;method_29621(Lnet/minecraft/class_350$class_351;)Vofficial hLeou;h(Leou$a;)Vnamed setEntryParentListLnet/minecraft/client/gui/widget/EntryListWidget;setEntryParentList(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
appendNarrations
- Mappings:
Namespace Name Mixin selector intermediary method_37017Lnet/minecraft/class_350;method_37017(Lnet/minecraft/class_6382;Lnet/minecraft/class_350$class_351;)Vofficial aLeou;a(Lesg;Leou$a;)Vnamed appendNarrationsLnet/minecraft/client/gui/widget/EntryListWidget;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-