Package net.minecraft.client.gui.widget
Class EntryListWidget<E extends EntryListWidget.Entry<E>>
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
- Direct Known Subclasses:
AlwaysSelectedEntryListWidget
,ElementListWidget
@Environment(CLIENT) public abstract class EntryListWidget<E extends EntryListWidget.Entry<E>> extends AbstractParentElement implements Drawable
- Mappings:
Namespace Name official drq
intermediary net/minecraft/class_350
named net/minecraft/client/gui/widget/EntryListWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
EntryListWidget.Entries
static class
EntryListWidget.Entry<E extends EntryListWidget.Entry<E>>
static class
EntryListWidget.MoveDirection
Represents the direction in which the selection is moved. -
Field Summary
Fields Modifier and Type Field Description protected int
bottom
protected boolean
centerListVertically
private List<E>
children
protected MinecraftClient
client
private boolean
field_26846
private boolean
field_26847
protected int
headerHeight
protected int
height
protected int
itemHeight
protected int
left
private boolean
renderHeader
private boolean
renderSelection
protected int
right
private double
scrollAmount
private boolean
scrolling
private E
selected
protected int
top
protected int
width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description EntryListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
-
Method Summary
Modifier and Type Method Description protected int
addEntry(E entry)
protected void
centerScrollOn(E entry)
List<E>
children()
Gets a list of all child GUI elements.protected void
clearEntries()
protected void
clickedHeader(int x, int y)
protected void
ensureVisible(E entry)
protected E
getEntry(int index)
protected E
getEntryAtPosition(double x, double y)
E
getFocused()
protected int
getItemCount()
protected int
getMaxPosition()
int
getMaxScroll()
private int
getRowBottom(int index)
int
getRowLeft()
protected int
getRowTop(int index)
int
getRowWidth()
double
getScrollAmount()
protected int
getScrollbarPositionX()
E
getSelected()
protected boolean
isFocused()
boolean
isMouseOver(double mouseX, double mouseY)
Checks if the mouse position is within the bound of the element.protected boolean
isSelectedItem(int index)
boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private void
method_29621(EntryListWidget.Entry<E> entry)
protected void
method_30015()
void
method_31322(boolean bool)
void
method_31323(boolean bool)
int
method_31383()
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.boolean
mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
Callback for when a mouse button drag event has been captured.boolean
mouseReleased(double mouseX, double mouseY, int button)
Callback for when a mouse button release event has been captured.boolean
mouseScrolled(double mouseX, double mouseY, double amount)
Callback for when a mouse button scroll event has been captured.protected void
moveSelection(EntryListWidget.MoveDirection direction)
protected void
moveSelectionIf(EntryListWidget.MoveDirection direction, Predicate<E> predicate)
Moves the selection in the specified direction until the predicate returns true.protected E
remove(int index)
protected boolean
removeEntry(E entry)
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
protected void
renderBackground(MatrixStack matrices)
protected void
renderDecorations(MatrixStack matrices, int int2, int int3)
protected void
renderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)
protected void
renderList(MatrixStack matrices, int x, int y, int mouseX, int mouseY, float delta)
protected void
replaceEntries(Collection<E> newEntries)
private void
scroll(int amount)
void
setLeftPos(int left)
protected void
setRenderHeader(boolean renderHeader, int headerHeight)
void
setRenderSelection(boolean renderSelection)
void
setScrollAmount(double amount)
void
setSelected(E entry)
protected void
updateScrollingState(double mouseX, double mouseY, int button)
void
updateSize(int width, int height, int top, int bottom)
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official b
Ldrq;b:Ldqk;
intermediary field_22740
Lnet/minecraft/class_350;field_22740:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/widget/EntryListWidget;client:Lnet/minecraft/client/MinecraftClient;
-
itemHeight
protected final int itemHeight- Mappings:
Namespace Name Mixin selector official c
Ldrq;c:I
intermediary field_22741
Lnet/minecraft/class_350;field_22741:I
named itemHeight
Lnet/minecraft/client/gui/widget/EntryListWidget;itemHeight:I
-
children
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a:Ljava/util/List;
intermediary field_22739
Lnet/minecraft/class_350;field_22739:Ljava/util/List;
named children
Lnet/minecraft/client/gui/widget/EntryListWidget;children:Ljava/util/List;
-
width
protected int width- Mappings:
Namespace Name Mixin selector official d
Ldrq;d:I
intermediary field_22742
Lnet/minecraft/class_350;field_22742:I
named width
Lnet/minecraft/client/gui/widget/EntryListWidget;width:I
-
height
protected int height- Mappings:
Namespace Name Mixin selector official e
Ldrq;e:I
intermediary field_22743
Lnet/minecraft/class_350;field_22743:I
named height
Lnet/minecraft/client/gui/widget/EntryListWidget;height:I
-
top
protected int top- Mappings:
Namespace Name Mixin selector official i
Ldrq;i:I
intermediary field_19085
Lnet/minecraft/class_350;field_19085:I
named top
Lnet/minecraft/client/gui/widget/EntryListWidget;top:I
-
bottom
protected int bottom- Mappings:
Namespace Name Mixin selector official j
Ldrq;j:I
intermediary field_19086
Lnet/minecraft/class_350;field_19086:I
named bottom
Lnet/minecraft/client/gui/widget/EntryListWidget;bottom:I
-
right
protected int right- Mappings:
Namespace Name Mixin selector official k
Ldrq;k:I
intermediary field_19087
Lnet/minecraft/class_350;field_19087:I
named right
Lnet/minecraft/client/gui/widget/EntryListWidget;right:I
-
left
protected int left- Mappings:
Namespace Name Mixin selector official l
Ldrq;l:I
intermediary field_19088
Lnet/minecraft/class_350;field_19088:I
named left
Lnet/minecraft/client/gui/widget/EntryListWidget;left:I
-
centerListVertically
protected boolean centerListVertically- Mappings:
Namespace Name Mixin selector official m
Ldrq;m:Z
intermediary field_22744
Lnet/minecraft/class_350;field_22744:Z
named centerListVertically
Lnet/minecraft/client/gui/widget/EntryListWidget;centerListVertically:Z
-
scrollAmount
private double scrollAmount- Mappings:
Namespace Name Mixin selector official o
Ldrq;o:D
intermediary field_22749
Lnet/minecraft/class_350;field_22749:D
named scrollAmount
Lnet/minecraft/client/gui/widget/EntryListWidget;scrollAmount:D
-
renderSelection
private boolean renderSelection- Mappings:
Namespace Name Mixin selector official p
Ldrq;p:Z
intermediary field_22746
Lnet/minecraft/class_350;field_22746:Z
named renderSelection
Lnet/minecraft/client/gui/widget/EntryListWidget;renderSelection:Z
-
renderHeader
private boolean renderHeader- Mappings:
Namespace Name Mixin selector official q
Ldrq;q:Z
intermediary field_22747
Lnet/minecraft/class_350;field_22747:Z
named renderHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;renderHeader:Z
-
headerHeight
protected int headerHeight- Mappings:
Namespace Name Mixin selector official n
Ldrq;n:I
intermediary field_22748
Lnet/minecraft/class_350;field_22748:I
named headerHeight
Lnet/minecraft/client/gui/widget/EntryListWidget;headerHeight:I
-
scrolling
private boolean scrolling- Mappings:
Namespace Name Mixin selector official r
Ldrq;r:Z
intermediary field_22750
Lnet/minecraft/class_350;field_22750:Z
named scrolling
Lnet/minecraft/client/gui/widget/EntryListWidget;scrolling:Z
-
selected
- Mappings:
Namespace Name Mixin selector official s
Ldrq;s:Ldrq$a;
intermediary field_22751
Lnet/minecraft/class_350;field_22751:Lnet/minecraft/class_350$class_351;
named selected
Lnet/minecraft/client/gui/widget/EntryListWidget;selected:Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
field_26846
private boolean field_26846- Mappings:
Namespace Name Mixin selector official t
Ldrq;t:Z
intermediary field_26846
Lnet/minecraft/class_350;field_26846:Z
named field_26846
Lnet/minecraft/client/gui/widget/EntryListWidget;field_26846:Z
-
field_26847
private boolean field_26847- Mappings:
Namespace Name Mixin selector official u
Ldrq;u:Z
intermediary field_26847
Lnet/minecraft/class_350;field_26847:Z
named field_26847
Lnet/minecraft/client/gui/widget/EntryListWidget;field_26847:Z
-
-
Constructor Details
-
EntryListWidget
public EntryListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)- Mappings:
Namespace Name Mixin selector official <init>
Ldrq;<init>(Ldqk;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
-
setRenderSelection
public void setRenderSelection(boolean renderSelection)- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Z)V
intermediary method_29344
Lnet/minecraft/class_350;method_29344(Z)V
named setRenderSelection
Lnet/minecraft/client/gui/widget/EntryListWidget;setRenderSelection(Z)V
-
setRenderHeader
protected void setRenderHeader(boolean renderHeader, int headerHeight)- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(ZI)V
intermediary method_25315
Lnet/minecraft/class_350;method_25315(ZI)V
named setRenderHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;setRenderHeader(ZI)V
-
getRowWidth
public int getRowWidth()- Mappings:
Namespace Name Mixin selector official d
Ldrq;d()I
intermediary method_25322
Lnet/minecraft/class_350;method_25322()I
named getRowWidth
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getSelected
- Mappings:
Namespace Name Mixin selector official h
Ldrq;h()Ldrq$a;
intermediary method_25334
Lnet/minecraft/class_350;method_25334()Lnet/minecraft/class_350$class_351;
named getSelected
Lnet/minecraft/client/gui/widget/EntryListWidget;getSelected()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
setSelected
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldrq$a;)V
intermediary method_25313
Lnet/minecraft/class_350;method_25313(Lnet/minecraft/class_350$class_351;)V
named setSelected
Lnet/minecraft/client/gui/widget/EntryListWidget;setSelected(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
method_31322
public void method_31322(boolean bool)- Mappings:
Namespace Name Mixin selector official b
Ldrq;b(Z)V
intermediary method_31322
Lnet/minecraft/class_350;method_31322(Z)V
named method_31322
Lnet/minecraft/client/gui/widget/EntryListWidget;method_31322(Z)V
-
method_31323
public void method_31323(boolean bool)- Mappings:
Namespace Name Mixin selector official c
Ldrq;c(Z)V
intermediary method_31323
Lnet/minecraft/class_350;method_31323(Z)V
named method_31323
Lnet/minecraft/client/gui/widget/EntryListWidget;method_31323(Z)V
-
getFocused
Description copied from class:AbstractParentElement
- Specified by:
getFocused
in interfaceParentElement
- Overrides:
getFocused
in classAbstractParentElement
- Mappings:
Namespace Name Mixin selector official i
Ldrq;i()Ldrq$a;
intermediary method_25336
Lnet/minecraft/class_350;method_25336()Lnet/minecraft/class_350$class_351;
named getFocused
Lnet/minecraft/client/gui/widget/EntryListWidget;getFocused()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
children
Gets a list of all child GUI elements.- Specified by:
children
in interfaceParentElement
- Mappings:
Namespace Name Mixin selector official aA_
Ldss;aA_()Ljava/util/List;
intermediary method_25396
Lnet/minecraft/class_4069;method_25396()Ljava/util/List;
named children
Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
-
clearEntries
protected final void clearEntries()- Mappings:
Namespace Name Mixin selector official k
Ldrq;k()V
intermediary method_25339
Lnet/minecraft/class_350;method_25339()V
named clearEntries
Lnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
-
replaceEntries
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ljava/util/Collection;)V
intermediary method_25314
Lnet/minecraft/class_350;method_25314(Ljava/util/Collection;)V
named replaceEntries
Lnet/minecraft/client/gui/widget/EntryListWidget;replaceEntries(Ljava/util/Collection;)V
-
getEntry
- Mappings:
Namespace Name Mixin selector official e
Ldrq;e(I)Ldrq$a;
intermediary method_25326
Lnet/minecraft/class_350;method_25326(I)Lnet/minecraft/class_350$class_351;
named getEntry
Lnet/minecraft/client/gui/widget/EntryListWidget;getEntry(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
addEntry
- Mappings:
Namespace Name Mixin selector official b
Ldrq;b(Ldrq$a;)I
intermediary method_25321
Lnet/minecraft/class_350;method_25321(Lnet/minecraft/class_350$class_351;)I
named addEntry
Lnet/minecraft/client/gui/widget/EntryListWidget;addEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)I
-
getItemCount
protected int getItemCount()- Mappings:
Namespace Name Mixin selector official l
Ldrq;l()I
intermediary method_25340
Lnet/minecraft/class_350;method_25340()I
named getItemCount
Lnet/minecraft/client/gui/widget/EntryListWidget;getItemCount()I
-
isSelectedItem
protected boolean isSelectedItem(int index)- Mappings:
Namespace Name Mixin selector official f
Ldrq;f(I)Z
intermediary method_25332
Lnet/minecraft/class_350;method_25332(I)Z
named isSelectedItem
Lnet/minecraft/client/gui/widget/EntryListWidget;isSelectedItem(I)Z
-
getEntryAtPosition
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(DD)Ldrq$a;
intermediary method_25308
Lnet/minecraft/class_350;method_25308(DD)Lnet/minecraft/class_350$class_351;
named getEntryAtPosition
Lnet/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 official a
Ldrq;a(IIII)V
intermediary method_25323
Lnet/minecraft/class_350;method_25323(IIII)V
named updateSize
Lnet/minecraft/client/gui/widget/EntryListWidget;updateSize(IIII)V
-
setLeftPos
public void setLeftPos(int left)- Mappings:
Namespace Name Mixin selector official g
Ldrq;g(I)V
intermediary method_25333
Lnet/minecraft/class_350;method_25333(I)V
named setLeftPos
Lnet/minecraft/client/gui/widget/EntryListWidget;setLeftPos(I)V
-
getMaxPosition
protected int getMaxPosition()- Mappings:
Namespace Name Mixin selector official c
Ldrq;c()I
intermediary method_25317
Lnet/minecraft/class_350;method_25317()I
named getMaxPosition
Lnet/minecraft/client/gui/widget/EntryListWidget;getMaxPosition()I
-
clickedHeader
protected void clickedHeader(int x, int y)- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(II)V
intermediary method_25310
Lnet/minecraft/class_350;method_25310(II)V
named clickedHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)V
-
renderHeader
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldlr;IILdlt;)V
intermediary method_25312
Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_4587;IILnet/minecraft/class_289;)V
named renderHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/client/render/Tessellator;)V
-
renderBackground
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldlr;)V
intermediary method_25325
Lnet/minecraft/class_350;method_25325(Lnet/minecraft/class_4587;)V
named renderBackground
Lnet/minecraft/client/gui/widget/EntryListWidget;renderBackground(Lnet/minecraft/client/util/math/MatrixStack;)V
-
renderDecorations
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldlr;II)V
intermediary method_25320
Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_4587;II)V
named renderDecorations
Lnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
render
- Specified by:
render
in interfaceDrawable
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
centerScrollOn
- Mappings:
Namespace Name Mixin selector official c
Ldrq;c(Ldrq$a;)V
intermediary method_25324
Lnet/minecraft/class_350;method_25324(Lnet/minecraft/class_350$class_351;)V
named centerScrollOn
Lnet/minecraft/client/gui/widget/EntryListWidget;centerScrollOn(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-
ensureVisible
- Mappings:
Namespace Name Mixin selector official d
Ldrq;d(Ldrq$a;)V
intermediary method_25328
Lnet/minecraft/class_350;method_25328(Lnet/minecraft/class_350$class_351;)V
named ensureVisible
Lnet/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 a
Ldrq;a(I)V
intermediary method_25309
Lnet/minecraft/class_350;method_25309(I)V
named scroll
Lnet/minecraft/client/gui/widget/EntryListWidget;scroll(I)V
-
getScrollAmount
public double getScrollAmount()- Mappings:
Namespace Name Mixin selector official m
Ldrq;m()D
intermediary method_25341
Lnet/minecraft/class_350;method_25341()D
named getScrollAmount
Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollAmount()D
-
setScrollAmount
public void setScrollAmount(double amount)- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(D)V
intermediary method_25307
Lnet/minecraft/class_350;method_25307(D)V
named setScrollAmount
Lnet/minecraft/client/gui/widget/EntryListWidget;setScrollAmount(D)V
-
getMaxScroll
public int getMaxScroll()- Mappings:
Namespace Name Mixin selector official n
Ldrq;n()I
intermediary method_25331
Lnet/minecraft/class_350;method_25331()I
named getMaxScroll
Lnet/minecraft/client/gui/widget/EntryListWidget;getMaxScroll()I
-
updateScrollingState
protected void updateScrollingState(double mouseX, double mouseY, int button)- Mappings:
Namespace Name Mixin selector official b
Ldrq;b(DDI)V
intermediary method_25318
Lnet/minecraft/class_350;method_25318(DDI)V
named updateScrollingState
Lnet/minecraft/client/gui/widget/EntryListWidget;updateScrollingState(DDI)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Mappings:
Namespace Name Mixin selector official e
Ldrq;e()I
intermediary method_25329
Lnet/minecraft/class_350;method_25329()I
named getScrollbarPositionX
Lnet/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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Specified by:
mouseClicked
in interfaceParentElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/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 inGLFW
class.- Specified by:
mouseReleased
in interfaceElement
- Specified by:
mouseReleased
in interfaceParentElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official c
Ldst;c(DDI)Z
intermediary method_25406
Lnet/minecraft/class_364;method_25406(DDI)Z
named mouseReleased
Lnet/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 inGLFW
class.- Specified by:
mouseDragged
in interfaceElement
- Specified by:
mouseDragged
in 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:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onCursorPos(long, double, double)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(DDIDD)Z
intermediary method_25403
Lnet/minecraft/class_364;method_25403(DDIDD)Z
named mouseDragged
Lnet/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:
mouseScrolled
in interfaceElement
- Specified by:
mouseScrolled
in interfaceParentElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouseamount
- value is> 1
if scrolled down,< 1
if scrolled up- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseScroll(long, double, double)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(DDD)Z
intermediary method_25401
Lnet/minecraft/class_364;method_25401(DDD)Z
named mouseScrolled
Lnet/minecraft/client/gui/Element;mouseScrolled(DDD)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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to indicate that the event handling is successful/valid- See Also:
Keyboard.onKey(long, int, int, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
moveSelection
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldrq$b;)V
intermediary method_25335
Lnet/minecraft/class_350;method_25335(Lnet/minecraft/class_350$class_5403;)V
named moveSelection
Lnet/minecraft/client/gui/widget/EntryListWidget;moveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)V
-
method_30015
protected void method_30015()- Mappings:
Namespace Name Mixin selector official p
Ldrq;p()V
intermediary method_30015
Lnet/minecraft/class_350;method_30015()V
named method_30015
Lnet/minecraft/client/gui/widget/EntryListWidget;method_30015()V
-
moveSelectionIf
Moves the selection in the specified direction until the predicate returns true.- Parameters:
direction
- the direction to move the selection- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldrq$b;Ljava/util/function/Predicate;)V
intermediary method_30013
Lnet/minecraft/class_350;method_30013(Lnet/minecraft/class_350$class_5403;Ljava/util/function/Predicate;)V
named moveSelectionIf
Lnet/minecraft/client/gui/widget/EntryListWidget;moveSelectionIf(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;Ljava/util/function/Predicate;)V
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOver
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouse- Returns:
true
if the mouse is within the bound of the element, otherwisefalse
- Mappings:
Namespace Name Mixin selector official b
Ldst;b(DD)Z
intermediary method_25405
Lnet/minecraft/class_364;method_25405(DD)Z
named isMouseOver
Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
renderList
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldlr;IIIIF)V
intermediary method_25311
Lnet/minecraft/class_350;method_25311(Lnet/minecraft/class_4587;IIIIF)V
named renderList
Lnet/minecraft/client/gui/widget/EntryListWidget;renderList(Lnet/minecraft/client/util/math/MatrixStack;IIIIF)V
-
getRowLeft
public int getRowLeft()- Mappings:
Namespace Name Mixin selector official q
Ldrq;q()I
intermediary method_25342
Lnet/minecraft/class_350;method_25342()I
named getRowLeft
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowLeft()I
-
method_31383
public int method_31383()- Mappings:
Namespace Name Mixin selector official r
Ldrq;r()I
intermediary method_31383
Lnet/minecraft/class_350;method_31383()I
named method_31383
Lnet/minecraft/client/gui/widget/EntryListWidget;method_31383()I
-
getRowTop
protected int getRowTop(int index)- Mappings:
Namespace Name Mixin selector official h
Ldrq;h(I)I
intermediary method_25337
Lnet/minecraft/class_350;method_25337(I)I
named getRowTop
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowTop(I)I
-
getRowBottom
private int getRowBottom(int index)- Mappings:
Namespace Name Mixin selector official b
Ldrq;b(I)I
intermediary method_25319
Lnet/minecraft/class_350;method_25319(I)I
named getRowBottom
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowBottom(I)I
-
isFocused
protected boolean isFocused()- Mappings:
Namespace Name Mixin selector official b
Ldrq;b()Z
intermediary method_25316
Lnet/minecraft/class_350;method_25316()Z
named isFocused
Lnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z
-
remove
- Mappings:
Namespace Name Mixin selector official i
Ldrq;i(I)Ldrq$a;
intermediary method_25338
Lnet/minecraft/class_350;method_25338(I)Lnet/minecraft/class_350$class_351;
named remove
Lnet/minecraft/client/gui/widget/EntryListWidget;remove(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
removeEntry
- Mappings:
Namespace Name Mixin selector official e
Ldrq;e(Ldrq$a;)Z
intermediary method_25330
Lnet/minecraft/class_350;method_25330(Lnet/minecraft/class_350$class_351;)Z
named removeEntry
Lnet/minecraft/client/gui/widget/EntryListWidget;removeEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)Z
-
method_29621
- Mappings:
Namespace Name Mixin selector official f
Ldrq;f(Ldrq$a;)V
intermediary method_29621
Lnet/minecraft/class_350;method_29621(Lnet/minecraft/class_350$class_351;)V
named method_29621
Lnet/minecraft/client/gui/widget/EntryListWidget;method_29621(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
-