类 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>
-
- 所有已实现的接口:
Drawable,Element,ParentElement
@Environment(CLIENT) public abstract class EntryListWidget<E extends EntryListWidget.Entry<E>> extends AbstractParentElement implements Drawable
- Mappings:
Namespace Name official dvsintermediary net/minecraft/class_350named net/minecraft/client/gui/widget/EntryListWidget
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) classEntryListWidget.Entriesstatic classEntryListWidget.Entry<E extends EntryListWidget.Entry<E>>static classEntryListWidget.MoveDirectionRepresents the direction in which the selection is moved.
-
字段概要
字段 修饰符和类型 字段 说明 protected intbottomprotected booleancenterListVerticallyprivate List<E>childrenprotected MinecraftClientclientprivate booleanfield_26846private booleanfield_26847protected intheaderHeightprotected intheightprotected intitemHeightprotected intleftprivate booleanrenderHeaderprivate booleanrenderSelectionprotected intrightprivate doublescrollAmountprivate booleanscrollingprivate Eselectedprotected inttopstatic IdentifierWHITE_TEXTUREprotected intwidth-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 EntryListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected intaddEntry(E entry)protected voidcenterScrollOn(E entry)List<E>children()Gets a list of all child GUI elements.protected voidclearEntries()protected voidclickedHeader(int x, int y)protected voidensureSelectedEntryVisible()protected voidensureVisible(E entry)protected EgetEntry(int index)protected EgetEntryAtPosition(double x, double y)protected intgetEntryCount()EgetFocused()protected intgetMaxPosition()intgetMaxScroll()private intgetRowBottom(int index)intgetRowLeft()intgetRowRight()protected intgetRowTop(int index)intgetRowWidth()doublegetScrollAmount()protected intgetScrollbarPositionX()EgetSelected()protected booleanisFocused()booleanisMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.protected booleanisSelectedEntry(int index)booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.voidmethod_31322(boolean bool)voidmethod_31323(boolean bool)intmethod_35721()booleanmouseClicked(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 voidmoveSelection(EntryListWidget.MoveDirection direction)protected voidmoveSelectionIf(EntryListWidget.MoveDirection direction, Predicate<E> predicate)Moves the selection in the specified direction until the predicate returns true.protected Eremove(int index)protected booleanremoveEntry(E entry)voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)protected voidrenderBackground(MatrixStack matrices)protected voidrenderDecorations(MatrixStack matrices, int mouseX, int mouseY)protected voidrenderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)protected voidrenderList(MatrixStack matrices, int x, int y, int mouseX, int mouseY, float delta)protected voidreplaceEntries(Collection<E> newEntries)private voidscroll(int amount)private voidsetEntryParentList(EntryListWidget.Entry<E> entry)voidsetLeftPos(int left)protected voidsetRenderHeader(boolean renderHeader, int headerHeight)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)-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
-
-
-
字段详细资料
-
WHITE_TEXTURE
public static final Identifier WHITE_TEXTURE
- Mappings:
Namespace Name Mixin selector official bLdvs;b:Lwp;intermediary field_29346Lnet/minecraft/class_350;field_29346:Lnet/minecraft/class_2960;named WHITE_TEXTURELnet/minecraft/client/gui/widget/EntryListWidget;WHITE_TEXTURE:Lnet/minecraft/util/Identifier;
-
client
protected final MinecraftClient client
- Mappings:
Namespace Name Mixin selector official cLdvs;c:Ldum;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 dLdvs;d:Iintermediary field_22741Lnet/minecraft/class_350;field_22741:Inamed itemHeightLnet/minecraft/client/gui/widget/EntryListWidget;itemHeight:I
-
children
private final List<E extends EntryListWidget.Entry<E>> children
- Mappings:
Namespace Name Mixin selector official aLdvs;a: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;
-
width
protected int width
- Mappings:
Namespace Name Mixin selector official eLdvs;e:Iintermediary field_22742Lnet/minecraft/class_350;field_22742:Inamed widthLnet/minecraft/client/gui/widget/EntryListWidget;width:I
-
height
protected int height
- Mappings:
Namespace Name Mixin selector official iLdvs;i:Iintermediary field_22743Lnet/minecraft/class_350;field_22743:Inamed heightLnet/minecraft/client/gui/widget/EntryListWidget;height:I
-
top
protected int top
- Mappings:
Namespace Name Mixin selector official jLdvs;j:Iintermediary field_19085Lnet/minecraft/class_350;field_19085:Inamed topLnet/minecraft/client/gui/widget/EntryListWidget;top:I
-
bottom
protected int bottom
- Mappings:
Namespace Name Mixin selector official kLdvs;k:Iintermediary field_19086Lnet/minecraft/class_350;field_19086:Inamed bottomLnet/minecraft/client/gui/widget/EntryListWidget;bottom:I
-
right
protected int right
- Mappings:
Namespace Name Mixin selector official lLdvs;l:Iintermediary field_19087Lnet/minecraft/class_350;field_19087:Inamed rightLnet/minecraft/client/gui/widget/EntryListWidget;right:I
-
left
protected int left
- Mappings:
Namespace Name Mixin selector official mLdvs;m:Iintermediary field_19088Lnet/minecraft/class_350;field_19088:Inamed leftLnet/minecraft/client/gui/widget/EntryListWidget;left:I
-
centerListVertically
protected boolean centerListVertically
- Mappings:
Namespace Name Mixin selector official nLdvs;n: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 pLdvs;p:Dintermediary field_22749Lnet/minecraft/class_350;field_22749:Dnamed scrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;scrollAmount:D
-
renderSelection
private boolean renderSelection
- Mappings:
Namespace Name Mixin selector official qLdvs;q:Zintermediary field_22746Lnet/minecraft/class_350;field_22746:Znamed renderSelectionLnet/minecraft/client/gui/widget/EntryListWidget;renderSelection:Z
-
renderHeader
private boolean renderHeader
- Mappings:
Namespace Name Mixin selector official rLdvs;r: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 oLdvs;o: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 sLdvs;s:Zintermediary field_22750Lnet/minecraft/class_350;field_22750:Znamed scrollingLnet/minecraft/client/gui/widget/EntryListWidget;scrolling:Z
-
selected
private E extends EntryListWidget.Entry<E> selected
- Mappings:
Namespace Name Mixin selector official tLdvs;t:Ldvs$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;
-
field_26846
private boolean field_26846
- Mappings:
Namespace Name Mixin selector official uLdvs;u:Zintermediary field_26846Lnet/minecraft/class_350;field_26846:Znamed field_26846Lnet/minecraft/client/gui/widget/EntryListWidget;field_26846:Z
-
field_26847
private boolean field_26847
- Mappings:
Namespace Name Mixin selector official vLdvs;v:Zintermediary field_26847Lnet/minecraft/class_350;field_26847:Znamed field_26847Lnet/minecraft/client/gui/widget/EntryListWidget;field_26847:Z
-
-
构造器详细资料
-
EntryListWidget
public EntryListWidget(MinecraftClient client, int width, int height, int top, int bottom, int itemHeight)
- Mappings:
Namespace Name Mixin selector official <init>Ldvs;<init>(Ldum;IIIII)Vintermediary <init>Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIIII)Vnamed <init>Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIII)V
-
-
方法详细资料
-
setRenderSelection
public void setRenderSelection(boolean renderSelection)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(Z)Vintermediary method_29344Lnet/minecraft/class_350;method_29344(Z)Vnamed setRenderSelectionLnet/minecraft/client/gui/widget/EntryListWidget;setRenderSelection(Z)V
-
setRenderHeader
protected void setRenderHeader(boolean renderHeader, int headerHeight)- Mappings:
Namespace Name Mixin selector official aLdvs;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 dLdvs;d()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getSelected
@Nullable public E getSelected()
- Mappings:
Namespace Name Mixin selector official hLdvs;h()Ldvs$a;intermediary method_25334Lnet/minecraft/class_350;method_25334()Lnet/minecraft/class_350$class_351;named getSelectedLnet/minecraft/client/gui/widget/EntryListWidget;getSelected()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
-
setSelected
public void setSelected(@Nullable E entry)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldvs$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
-
method_31322
public void method_31322(boolean bool)
- Mappings:
Namespace Name Mixin selector official bLdvs;b(Z)Vintermediary method_31322Lnet/minecraft/class_350;method_31322(Z)Vnamed method_31322Lnet/minecraft/client/gui/widget/EntryListWidget;method_31322(Z)V
-
method_31323
public void method_31323(boolean bool)
- Mappings:
Namespace Name Mixin selector official cLdvs;c(Z)Vintermediary method_31323Lnet/minecraft/class_350;method_31323(Z)Vnamed method_31323Lnet/minecraft/client/gui/widget/EntryListWidget;method_31323(Z)V
-
getFocused
@Nullable public E getFocused()
从类复制的说明:AbstractParentElement- 指定者:
getFocused在接口中ParentElement- 覆盖:
getFocused在类中AbstractParentElement- Mappings:
Namespace Name Mixin selector official iLdvs;i()Ldvs$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
public final List<E> children()
Gets a list of all child GUI elements.- 指定者:
children在接口中ParentElement- Mappings:
Namespace Name Mixin selector official aB_Ldwu;aB_()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 final void clearEntries()
- Mappings:
Namespace Name Mixin selector official kLdvs;k()Vintermediary method_25339Lnet/minecraft/class_350;method_25339()Vnamed clearEntriesLnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
-
replaceEntries
protected void replaceEntries(Collection<E> newEntries)
- Mappings:
Namespace Name Mixin selector official aLdvs;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
protected E getEntry(int index)
- Mappings:
Namespace Name Mixin selector official eLdvs;e(I)Ldvs$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
protected int addEntry(E entry)
- Mappings:
Namespace Name Mixin selector official bLdvs;b(Ldvs$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
-
getEntryCount
protected int getEntryCount()
- Mappings:
Namespace Name Mixin selector official lLdvs;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 fLdvs;f(I)Zintermediary method_25332Lnet/minecraft/class_350;method_25332(I)Znamed isSelectedEntryLnet/minecraft/client/gui/widget/EntryListWidget;isSelectedEntry(I)Z
-
getEntryAtPosition
@Nullable protected final E getEntryAtPosition(double x, double y)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(DD)Ldvs$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;
-
updateSize
public void updateSize(int width, int height, int top, int bottom)- Mappings:
Namespace Name Mixin selector official aLdvs;a(IIII)Vintermediary method_25323Lnet/minecraft/class_350;method_25323(IIII)Vnamed updateSizeLnet/minecraft/client/gui/widget/EntryListWidget;updateSize(IIII)V
-
setLeftPos
public void setLeftPos(int left)
- Mappings:
Namespace Name Mixin selector official gLdvs;g(I)Vintermediary method_25333Lnet/minecraft/class_350;method_25333(I)Vnamed setLeftPosLnet/minecraft/client/gui/widget/EntryListWidget;setLeftPos(I)V
-
getMaxPosition
protected int getMaxPosition()
- Mappings:
Namespace Name Mixin selector official cLdvs;c()Iintermediary method_25317Lnet/minecraft/class_350;method_25317()Inamed getMaxPositionLnet/minecraft/client/gui/widget/EntryListWidget;getMaxPosition()I
-
clickedHeader
protected void clickedHeader(int x, int y)- Mappings:
Namespace Name Mixin selector official aLdvs;a(II)Vintermediary method_25310Lnet/minecraft/class_350;method_25310(II)Vnamed clickedHeaderLnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)V
-
renderHeader
protected void renderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldpi;IILdpk;)Vintermediary method_25312Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_4587;IILnet/minecraft/class_289;)Vnamed renderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/client/render/Tessellator;)V
-
renderBackground
protected void renderBackground(MatrixStack matrices)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldpi;)Vintermediary method_25325Lnet/minecraft/class_350;method_25325(Lnet/minecraft/class_4587;)Vnamed renderBackgroundLnet/minecraft/client/gui/widget/EntryListWidget;renderBackground(Lnet/minecraft/client/util/math/MatrixStack;)V
-
renderDecorations
protected void renderDecorations(MatrixStack matrices, int mouseX, int mouseY)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldpi;II)Vintermediary method_25320Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_4587;II)Vnamed renderDecorationsLnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
-
centerScrollOn
protected void centerScrollOn(E entry)
- Mappings:
Namespace Name Mixin selector official cLdvs;c(Ldvs$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
protected void ensureVisible(E entry)
- Mappings:
Namespace Name Mixin selector official dLdvs;d(Ldvs$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 aLdvs;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 mLdvs;m()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 aLdvs;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 nLdvs;n()Iintermediary method_25331Lnet/minecraft/class_350;method_25331()Inamed getMaxScrollLnet/minecraft/client/gui/widget/EntryListWidget;getMaxScroll()I
-
method_35721
public int method_35721()
- Mappings:
Namespace Name Mixin selector official oLdvs;o()Iintermediary method_35721Lnet/minecraft/class_350;method_35721()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 official bLdvs;b(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 eLdvs;e()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()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.- 指定者:
mouseClicked在接口中Element- 指定者:
mouseClicked在接口中ParentElement- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwv;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.- 指定者:
mouseReleased在接口中Element- 指定者:
mouseReleased在接口中ParentElement- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official cLdwv;c(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.- 指定者:
mouseDragged在接口中Element- 指定者:
mouseDragged在接口中ParentElement- 参数:
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- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onCursorPos(long, double, double),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwv;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 amount)Callback for when a mouse button scroll event has been captured.- 指定者:
mouseScrolled在接口中Element- 指定者:
mouseScrolled在接口中ParentElement- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouseamount- value is> 1if scrolled down,< 1if scrolled up- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseScroll(long, double, double)- Mappings:
Namespace Name Mixin selector official aLdwv;a(DDD)Zintermediary method_25401Lnet/minecraft/class_364;method_25401(DDD)Znamed mouseScrolledLnet/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 inGLFWclass.- 指定者:
keyPressed在接口中Element- 指定者:
keyPressed在接口中ParentElement- 参数:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdwv;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
moveSelection
protected void moveSelection(EntryListWidget.MoveDirection direction)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldvs$b;)Vintermediary method_25335Lnet/minecraft/class_350;method_25335(Lnet/minecraft/class_350$class_5403;)Vnamed moveSelectionLnet/minecraft/client/gui/widget/EntryListWidget;moveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)V
-
ensureSelectedEntryVisible
protected void ensureSelectedEntryVisible()
- Mappings:
Namespace Name Mixin selector official pLdvs;p()Vintermediary method_30015Lnet/minecraft/class_350;method_30015()Vnamed ensureSelectedEntryVisibleLnet/minecraft/client/gui/widget/EntryListWidget;ensureSelectedEntryVisible()V
-
moveSelectionIf
protected void moveSelectionIf(EntryListWidget.MoveDirection direction, Predicate<E> predicate)
Moves the selection in the specified direction until the predicate returns true.- 参数:
direction- the direction to move the selection- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldvs$b;Ljava/util/function/Predicate;)Vintermediary method_30013Lnet/minecraft/class_350;method_30013(Lnet/minecraft/class_350$class_5403;Ljava/util/function/Predicate;)Vnamed moveSelectionIfLnet/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.- 指定者:
isMouseOver在接口中Element- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- 返回:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector official bLdwv;b(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
renderList
protected void renderList(MatrixStack matrices, int x, int y, int mouseX, int mouseY, float delta)
- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldpi;IIIIF)Vintermediary method_25311Lnet/minecraft/class_350;method_25311(Lnet/minecraft/class_4587;IIIIF)Vnamed renderListLnet/minecraft/client/gui/widget/EntryListWidget;renderList(Lnet/minecraft/client/util/math/MatrixStack;IIIIF)V
-
getRowLeft
public int getRowLeft()
- Mappings:
Namespace Name Mixin selector official qLdvs;q()Iintermediary method_25342Lnet/minecraft/class_350;method_25342()Inamed getRowLeftLnet/minecraft/client/gui/widget/EntryListWidget;getRowLeft()I
-
getRowRight
public int getRowRight()
- Mappings:
Namespace Name Mixin selector official rLdvs;r()Iintermediary method_31383Lnet/minecraft/class_350;method_31383()Inamed getRowRightLnet/minecraft/client/gui/widget/EntryListWidget;getRowRight()I
-
getRowTop
protected int getRowTop(int index)
- Mappings:
Namespace Name Mixin selector official hLdvs;h(I)Iintermediary method_25337Lnet/minecraft/class_350;method_25337(I)Inamed getRowTopLnet/minecraft/client/gui/widget/EntryListWidget;getRowTop(I)I
-
getRowBottom
private int getRowBottom(int index)
- Mappings:
Namespace Name Mixin selector official bLdvs;b(I)Iintermediary method_25319Lnet/minecraft/class_350;method_25319(I)Inamed getRowBottomLnet/minecraft/client/gui/widget/EntryListWidget;getRowBottom(I)I
-
isFocused
protected boolean isFocused()
- Mappings:
Namespace Name Mixin selector official bLdvs;b()Zintermediary method_25316Lnet/minecraft/class_350;method_25316()Znamed isFocusedLnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z
-
remove
protected E remove(int index)
- Mappings:
Namespace Name Mixin selector official iLdvs;i(I)Ldvs$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
protected boolean removeEntry(E entry)
- Mappings:
Namespace Name Mixin selector official eLdvs;e(Ldvs$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
-
setEntryParentList
private void setEntryParentList(EntryListWidget.Entry<E> entry)
- Mappings:
Namespace Name Mixin selector official fLdvs;f(Ldvs$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
-
-