Class EntryListWidget<E extends EntryListWidget.Entry<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
named net/minecraft/client/gui/widget/EntryListWidget
intermediary net/minecraft/class_350
official fnz
  • Field Details

    • field_45909

      protected static final int field_45909
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_45909 Lnet/minecraft/client/gui/widget/EntryListWidget;field_45909:I
      intermediary field_45909 Lnet/minecraft/class_350;field_45909:I
      official b Lfnz;b:I
    • SCROLLER_TEXTURE

      private static final Identifier SCROLLER_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SCROLLER_TEXTURE Lnet/minecraft/client/gui/widget/EntryListWidget;SCROLLER_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45908 Lnet/minecraft/class_350;field_45908:Lnet/minecraft/class_2960;
      official a Lfnz;a:Lalz;
    • SCROLLER_BACKGROUND_TEXTURE

      private static final Identifier SCROLLER_BACKGROUND_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SCROLLER_BACKGROUND_TEXTURE Lnet/minecraft/client/gui/widget/EntryListWidget;SCROLLER_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_49477 Lnet/minecraft/class_350;field_49477:Lnet/minecraft/class_2960;
      official m Lfnz;m:Lalz;
    • INWORLD_MENU_LIST_BACKGROUND_TEXTURE

      private static final Identifier INWORLD_MENU_LIST_BACKGROUND_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named INWORLD_MENU_LIST_BACKGROUND_TEXTURE Lnet/minecraft/client/gui/widget/EntryListWidget;INWORLD_MENU_LIST_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_49892 Lnet/minecraft/class_350;field_49892:Lnet/minecraft/class_2960;
      official o Lfnz;o:Lalz;
    • client

      protected final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/gui/widget/EntryListWidget;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_22740 Lnet/minecraft/class_350;field_22740:Lnet/minecraft/class_310;
      official c Lfnz;c:Lfmf;
    • itemHeight

      protected final int itemHeight
      Mappings:
      Namespace Name Mixin selector
      named itemHeight Lnet/minecraft/client/gui/widget/EntryListWidget;itemHeight:I
      intermediary field_22741 Lnet/minecraft/class_350;field_22741:I
      official d Lfnz;d:I
    • children

      private final List<E extends EntryListWidget.Entry<E>> children
      Mappings:
      Namespace Name Mixin selector
      named children Lnet/minecraft/client/gui/widget/EntryListWidget;children:Ljava/util/List;
      intermediary field_22739 Lnet/minecraft/class_350;field_22739:Ljava/util/List;
      official p Lfnz;p:Ljava/util/List;
    • centerListVertically

      protected boolean centerListVertically
      Mappings:
      Namespace Name Mixin selector
      named centerListVertically Lnet/minecraft/client/gui/widget/EntryListWidget;centerListVertically:Z
      intermediary field_22744 Lnet/minecraft/class_350;field_22744:Z
      official e Lfnz;e:Z
    • scrollAmount

      private double scrollAmount
      Mappings:
      Namespace Name Mixin selector
      named scrollAmount Lnet/minecraft/client/gui/widget/EntryListWidget;scrollAmount:D
      intermediary field_22749 Lnet/minecraft/class_350;field_22749:D
      official q Lfnz;q:D
    • renderHeader

      private boolean renderHeader
      Mappings:
      Namespace Name Mixin selector
      named renderHeader Lnet/minecraft/client/gui/widget/EntryListWidget;renderHeader:Z
      intermediary field_22747 Lnet/minecraft/class_350;field_22747:Z
      official r Lfnz;r:Z
    • headerHeight

      protected int headerHeight
      Mappings:
      Namespace Name Mixin selector
      named headerHeight Lnet/minecraft/client/gui/widget/EntryListWidget;headerHeight:I
      intermediary field_22748 Lnet/minecraft/class_350;field_22748:I
      official f Lfnz;f:I
    • scrolling

      private boolean scrolling
      Mappings:
      Namespace Name Mixin selector
      named scrolling Lnet/minecraft/client/gui/widget/EntryListWidget;scrolling:Z
      intermediary field_22750 Lnet/minecraft/class_350;field_22750:Z
      official s Lfnz;s:Z
    • selected

      @Nullable private E extends EntryListWidget.Entry<E> selected
      Mappings:
      Namespace Name Mixin selector
      named selected Lnet/minecraft/client/gui/widget/EntryListWidget;selected:Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary field_22751 Lnet/minecraft/class_350;field_22751:Lnet/minecraft/class_350$class_351;
      official u Lfnz;u:Lfnz$a;
    • hoveredEntry

      @Nullable private E extends EntryListWidget.Entry<E> hoveredEntry
      Mappings:
      Namespace Name Mixin selector
      named hoveredEntry Lnet/minecraft/client/gui/widget/EntryListWidget;hoveredEntry:Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary field_33780 Lnet/minecraft/class_350;field_33780:Lnet/minecraft/class_350$class_351;
      official v Lfnz;v:Lfnz$a;
  • Constructor Details

    • EntryListWidget

      public EntryListWidget(MinecraftClient client, int width, int height, int y, int itemHeight)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/EntryListWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIII)V
      intermediary <init> Lnet/minecraft/class_350;<init>(Lnet/minecraft/class_310;IIII)V
      official <init> Lfnz;<init>(Lfmf;IIII)V
  • Method Details

    • setRenderHeader

      protected void setRenderHeader(boolean renderHeader, int headerHeight)
      Mappings:
      Namespace Name Mixin selector
      named setRenderHeader Lnet/minecraft/client/gui/widget/EntryListWidget;setRenderHeader(ZI)V
      intermediary method_25315 Lnet/minecraft/class_350;method_25315(ZI)V
      official a Lfnz;a(ZI)V
    • getSelectedOrNull

      @Nullable public E getSelectedOrNull()
      Returns the selected entry of this entry list, or null if there is none.
      Returns:
      the selected entry of this entry list, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      named getSelectedOrNull Lnet/minecraft/client/gui/widget/EntryListWidget;getSelectedOrNull()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_25334 Lnet/minecraft/class_350;method_25334()Lnet/minecraft/class_350$class_351;
      official g Lfnz;g()Lfnz$a;
    • setSelected

      public void setSelected(int index)
      Mappings:
      Namespace Name Mixin selector
      named setSelected Lnet/minecraft/client/gui/widget/EntryListWidget;setSelected(I)V
      intermediary method_64847 Lnet/minecraft/class_350;method_64847(I)V
      official a Lfnz;a(I)V
    • setSelected

      public void setSelected(@Nullable E entry)
      Mappings:
      Namespace Name Mixin selector
      named setSelected Lnet/minecraft/client/gui/widget/EntryListWidget;setSelected(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
      intermediary method_25313 Lnet/minecraft/class_350;method_25313(Lnet/minecraft/class_350$class_351;)V
      official a Lfnz;a(Lfnz$a;)V
    • getFirst

      public E getFirst()
      Mappings:
      Namespace Name Mixin selector
      named getFirst Lnet/minecraft/client/gui/widget/EntryListWidget;getFirst()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_48200 Lnet/minecraft/class_350;method_48200()Lnet/minecraft/class_350$class_351;
      official h Lfnz;h()Lfnz$a;
    • getFocused

      @Nullable public E getFocused()
      Specified by:
      getFocused in interface ParentElement
      Overrides:
      getFocused in class ContainerWidget
      Mappings:
      Namespace Name Mixin selector
      named getFocused Lnet/minecraft/client/gui/widget/EntryListWidget;getFocused()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_25336 Lnet/minecraft/class_350;method_25336()Lnet/minecraft/class_350$class_351;
      official i Lfnz;i()Lfnz$a;
    • children

      public final List<E> children()
      Gets a list of all child GUI elements.
      Mappings:
      Namespace Name Mixin selector
      named children Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
      intermediary method_25396 Lnet/minecraft/class_4069;method_25396()Ljava/util/List;
      official aI_ Lfqb;aI_()Ljava/util/List;
    • clearEntries

      protected void clearEntries()
      Mappings:
      Namespace Name Mixin selector
      named clearEntries Lnet/minecraft/client/gui/widget/EntryListWidget;clearEntries()V
      intermediary method_25339 Lnet/minecraft/class_350;method_25339()V
      official j Lfnz;j()V
    • replaceEntries

      public void replaceEntries(Collection<E> newEntries)
      Mappings:
      Namespace Name Mixin selector
      named replaceEntries Lnet/minecraft/client/gui/widget/EntryListWidget;replaceEntries(Ljava/util/Collection;)V
      intermediary method_25314 Lnet/minecraft/class_350;method_25314(Ljava/util/Collection;)V
      official a Lfnz;a(Ljava/util/Collection;)V
    • getEntry

      protected E getEntry(int index)
      Mappings:
      Namespace Name Mixin selector
      named getEntry Lnet/minecraft/client/gui/widget/EntryListWidget;getEntry(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_25326 Lnet/minecraft/class_350;method_25326(I)Lnet/minecraft/class_350$class_351;
      official b Lfnz;b(I)Lfnz$a;
    • addEntry

      protected int addEntry(E entry)
      Mappings:
      Namespace Name Mixin selector
      named addEntry Lnet/minecraft/client/gui/widget/EntryListWidget;addEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)I
      intermediary method_25321 Lnet/minecraft/class_350;method_25321(Lnet/minecraft/class_350$class_351;)I
      official b Lfnz;b(Lfnz$a;)I
    • addEntryToTop

      protected void addEntryToTop(E entry)
      Mappings:
      Namespace Name Mixin selector
      named addEntryToTop Lnet/minecraft/client/gui/widget/EntryListWidget;addEntryToTop(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
      intermediary method_44399 Lnet/minecraft/class_350;method_44399(Lnet/minecraft/class_350$class_351;)V
      official c Lfnz;c(Lfnz$a;)V
    • removeEntryWithoutScrolling

      protected boolean removeEntryWithoutScrolling(E entry)
      Mappings:
      Namespace Name Mixin selector
      named removeEntryWithoutScrolling Lnet/minecraft/client/gui/widget/EntryListWidget;removeEntryWithoutScrolling(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)Z
      intermediary method_44650 Lnet/minecraft/class_350;method_44650(Lnet/minecraft/class_350$class_351;)Z
      official d Lfnz;d(Lfnz$a;)Z
    • getEntryCount

      protected int getEntryCount()
      Mappings:
      Namespace Name Mixin selector
      named getEntryCount Lnet/minecraft/client/gui/widget/EntryListWidget;getEntryCount()I
      intermediary method_25340 Lnet/minecraft/class_350;method_25340()I
      official k Lfnz;k()I
    • isSelectedEntry

      protected boolean isSelectedEntry(int index)
      Mappings:
      Namespace Name Mixin selector
      named isSelectedEntry Lnet/minecraft/client/gui/widget/EntryListWidget;isSelectedEntry(I)Z
      intermediary method_25332 Lnet/minecraft/class_350;method_25332(I)Z
      official c Lfnz;c(I)Z
    • getEntryAtPosition

      @Nullable protected final E getEntryAtPosition(double x, double y)
      Mappings:
      Namespace Name Mixin selector
      named getEntryAtPosition Lnet/minecraft/client/gui/widget/EntryListWidget;getEntryAtPosition(DD)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_25308 Lnet/minecraft/class_350;method_25308(DD)Lnet/minecraft/class_350$class_351;
      official b Lfnz;b(DD)Lfnz$a;
    • position

      public void position(int width, ThreePartsLayoutWidget layout)
      Mappings:
      Namespace Name Mixin selector
      named position Lnet/minecraft/client/gui/widget/EntryListWidget;position(ILnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;)V
      intermediary method_57712 Lnet/minecraft/class_350;method_57712(ILnet/minecraft/class_8132;)V
      official a Lfnz;a(ILfrt;)V
    • position

      public void position(int width, int height, int y)
      Mappings:
      Namespace Name Mixin selector
      named position Lnet/minecraft/client/gui/widget/EntryListWidget;position(III)V
      intermediary method_57714 Lnet/minecraft/class_350;method_57714(III)V
      official b Lfnz;b(III)V
    • getMaxPosition

      protected int getMaxPosition()
      Mappings:
      Namespace Name Mixin selector
      named getMaxPosition Lnet/minecraft/client/gui/widget/EntryListWidget;getMaxPosition()I
      intermediary method_25317 Lnet/minecraft/class_350;method_25317()I
      official l Lfnz;l()I
    • clickedHeader

      protected boolean clickedHeader(int x, int y)
      Called when the header is clicked.
      Returns:
      true to indicate that the event handling is successful/valid
      Mappings:
      Namespace Name Mixin selector
      named clickedHeader Lnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)Z
      intermediary method_25310 Lnet/minecraft/class_350;method_25310(II)Z
      official a Lfnz;a(II)Z
    • renderHeader

      protected void renderHeader(DrawContext context, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named renderHeader Lnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/gui/DrawContext;II)V
      intermediary method_25312 Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_332;II)V
      official a Lfnz;a(Lfnr;II)V
    • renderDecorations

      protected void renderDecorations(DrawContext context, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      named renderDecorations Lnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/gui/DrawContext;II)V
      intermediary method_25320 Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_332;II)V
      official b Lfnz;b(Lfnr;II)V
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      renderWidget in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named renderWidget Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      official b Lfoc;b(Lfnr;IIF)V
    • isScrollbarVisible

      protected boolean isScrollbarVisible()
      Mappings:
      Namespace Name Mixin selector
      named isScrollbarVisible Lnet/minecraft/client/gui/widget/EntryListWidget;isScrollbarVisible()Z
      intermediary method_57717 Lnet/minecraft/class_350;method_57717()Z
      official m Lfnz;m()Z
    • drawHeaderAndFooterSeparators

      protected void drawHeaderAndFooterSeparators(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named drawHeaderAndFooterSeparators Lnet/minecraft/client/gui/widget/EntryListWidget;drawHeaderAndFooterSeparators(Lnet/minecraft/client/gui/DrawContext;)V
      intermediary method_57713 Lnet/minecraft/class_350;method_57713(Lnet/minecraft/class_332;)V
      official a Lfnz;a(Lfnr;)V
    • drawMenuListBackground

      protected void drawMenuListBackground(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named drawMenuListBackground Lnet/minecraft/client/gui/widget/EntryListWidget;drawMenuListBackground(Lnet/minecraft/client/gui/DrawContext;)V
      intermediary method_57715 Lnet/minecraft/class_350;method_57715(Lnet/minecraft/class_332;)V
      official b Lfnz;b(Lfnr;)V
    • enableScissor

      protected void enableScissor(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named enableScissor Lnet/minecraft/client/gui/widget/EntryListWidget;enableScissor(Lnet/minecraft/client/gui/DrawContext;)V
      intermediary method_49603 Lnet/minecraft/class_350;method_49603(Lnet/minecraft/class_332;)V
      official c Lfnz;c(Lfnr;)V
    • centerScrollOn

      protected void centerScrollOn(E entry)
      Mappings:
      Namespace Name Mixin selector
      named centerScrollOn Lnet/minecraft/client/gui/widget/EntryListWidget;centerScrollOn(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
      intermediary method_25324 Lnet/minecraft/class_350;method_25324(Lnet/minecraft/class_350$class_351;)V
      official e Lfnz;e(Lfnz$a;)V
    • ensureVisible

      protected void ensureVisible(E entry)
      Mappings:
      Namespace Name Mixin selector
      named ensureVisible Lnet/minecraft/client/gui/widget/EntryListWidget;ensureVisible(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
      intermediary method_25328 Lnet/minecraft/class_350;method_25328(Lnet/minecraft/class_350$class_351;)V
      official f Lfnz;f(Lfnz$a;)V
    • scroll

      private void scroll(int amount)
      Mappings:
      Namespace Name Mixin selector
      named scroll Lnet/minecraft/client/gui/widget/EntryListWidget;scroll(I)V
      intermediary method_25309 Lnet/minecraft/class_350;method_25309(I)V
      official n Lfnz;n(I)V
    • getScrollAmount

      public double getScrollAmount()
      Mappings:
      Namespace Name Mixin selector
      named getScrollAmount Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollAmount()D
      intermediary method_25341 Lnet/minecraft/class_350;method_25341()D
      official n Lfnz;n()D
    • setScrollAmountOnly

      public void setScrollAmountOnly(double amount)
      Sets the scroll amount to amount. Unlike setScrollAmount(double), this has no side effects (like loading more entries).
      Mappings:
      Namespace Name Mixin selector
      named setScrollAmountOnly Lnet/minecraft/client/gui/widget/EntryListWidget;setScrollAmountOnly(D)V
      intermediary method_60321 Lnet/minecraft/class_350;method_60321(D)V
      official a Lfnz;a(D)V
    • setScrollAmount

      public void setScrollAmount(double amount)
      Mappings:
      Namespace Name Mixin selector
      named setScrollAmount Lnet/minecraft/client/gui/widget/EntryListWidget;setScrollAmount(D)V
      intermediary method_25307 Lnet/minecraft/class_350;method_25307(D)V
      official b Lfnz;b(D)V
    • refreshScroll

      public void refreshScroll()
      Mappings:
      Namespace Name Mixin selector
      named refreshScroll Lnet/minecraft/client/gui/widget/EntryListWidget;refreshScroll()V
      intermediary method_60322 Lnet/minecraft/class_350;method_60322()V
      official o Lfnz;o()V
    • getMaxScroll

      public int getMaxScroll()
      Mappings:
      Namespace Name Mixin selector
      named getMaxScroll Lnet/minecraft/client/gui/widget/EntryListWidget;getMaxScroll()I
      intermediary method_25331 Lnet/minecraft/class_350;method_25331()I
      official p Lfnz;p()I
    • updateScrollingState

      protected void updateScrollingState(double mouseX, double mouseY, int button)
      Mappings:
      Namespace Name Mixin selector
      named updateScrollingState Lnet/minecraft/client/gui/widget/EntryListWidget;updateScrollingState(DDI)V
      intermediary method_25318 Lnet/minecraft/class_350;method_25318(DDI)V
      official c Lfnz;c(DDI)V
    • getScrollbarX

      protected int getScrollbarX()
      Mappings:
      Namespace Name Mixin selector
      named getScrollbarX Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarX()I
      intermediary method_25329 Lnet/minecraft/class_350;method_25329()I
      official q Lfnz;q()I
    • getDefaultScrollbarX

      protected int getDefaultScrollbarX()
      Mappings:
      Namespace Name Mixin selector
      named getDefaultScrollbarX Lnet/minecraft/client/gui/widget/EntryListWidget;getDefaultScrollbarX()I
      intermediary method_57718 Lnet/minecraft/class_350;method_57718()I
      official r Lfnz;r()I
    • getScrollbarMarginX

      private int getScrollbarMarginX()
      Mappings:
      Namespace Name Mixin selector
      named getScrollbarMarginX Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarMarginX()I
      intermediary method_57716 Lnet/minecraft/class_350;method_57716()I
      official b Lfnz;b()I
    • isSelectButton

      protected boolean isSelectButton(int button)
      Mappings:
      Namespace Name Mixin selector
      named isSelectButton Lnet/minecraft/client/gui/widget/EntryListWidget;isSelectButton(I)Z
      intermediary method_53812 Lnet/minecraft/class_350;method_53812(I)Z
      official d Lfnz;d(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 in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Specified by:
      mouseClicked in interface ParentElement
      Overrides:
      mouseClicked in class ContainerWidget
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      official a Lfqc;a(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 in GLFW class.
      Specified by:
      mouseReleased in interface Element
      Specified by:
      mouseReleased in interface ParentElement
      Overrides:
      mouseReleased in class ContainerWidget
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseReleased Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
      intermediary method_25406 Lnet/minecraft/class_364;method_25406(DDI)Z
      official b Lfqc;b(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 in GLFW class.
      Specified by:
      mouseDragged in interface Element
      Specified by:
      mouseDragged in interface ParentElement
      Overrides:
      mouseDragged in class ContainerWidget
      Parameters:
      mouseX - the current X coordinate of the mouse
      mouseY - the current Y coordinate of the mouse
      button - the mouse button number
      deltaX - the difference of the current X with the previous X coordinate
      deltaY - the difference of the current Y with the previous Y coordinate
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
      intermediary method_25403 Lnet/minecraft/class_364;method_25403(DDIDD)Z
      official a Lfqc;a(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 mouse
      mouseY - the Y coordinate of the mouse
      horizontalAmount - the horizontal scroll amount
      verticalAmount - the vertical scroll amount
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseScrolled Lnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Z
      intermediary method_25401 Lnet/minecraft/class_364;method_25401(DDDD)Z
      official a Lfqc;a(DDDD)Z
    • setFocused

      public void setFocused(@Nullable @Nullable Element focused)
      Specified by:
      setFocused in interface ParentElement
      Overrides:
      setFocused in class ContainerWidget
      Mappings:
      Namespace Name Mixin selector
      named setFocused Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V
      intermediary method_25395 Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V
      official a Lfqb;a(Lfqc;)V
    • getNeighboringEntry

      @Nullable protected E getNeighboringEntry(NavigationDirection direction)
      Mappings:
      Namespace Name Mixin selector
      named getNeighboringEntry Lnet/minecraft/client/gui/widget/EntryListWidget;getNeighboringEntry(Lnet/minecraft/client/gui/navigation/NavigationDirection;)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_48197 Lnet/minecraft/class_350;method_48197(Lnet/minecraft/class_8028;)Lnet/minecraft/class_350$class_351;
      official a Lfnz;a(Lfsk;)Lfnz$a;
    • getNeighboringEntry

      @Nullable protected E getNeighboringEntry(NavigationDirection direction, Predicate<E> predicate)
      Mappings:
      Namespace Name Mixin selector
      named getNeighboringEntry Lnet/minecraft/client/gui/widget/EntryListWidget;getNeighboringEntry(Lnet/minecraft/client/gui/navigation/NavigationDirection;Ljava/util/function/Predicate;)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_48198 Lnet/minecraft/class_350;method_48198(Lnet/minecraft/class_8028;Ljava/util/function/Predicate;)Lnet/minecraft/class_350$class_351;
      official a Lfnz;a(Lfsk;Ljava/util/function/Predicate;)Lfnz$a;
    • getNeighboringEntry

      @Nullable protected E getNeighboringEntry(NavigationDirection direction, Predicate<E> predicate, @Nullable E selected)
      Mappings:
      Namespace Name Mixin selector
      named getNeighboringEntry Lnet/minecraft/client/gui/widget/EntryListWidget;getNeighboringEntry(Lnet/minecraft/client/gui/navigation/NavigationDirection;Ljava/util/function/Predicate;Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_48199 Lnet/minecraft/class_350;method_48199(Lnet/minecraft/class_8028;Ljava/util/function/Predicate;Lnet/minecraft/class_350$class_351;)Lnet/minecraft/class_350$class_351;
      official a Lfnz;a(Lfsk;Ljava/util/function/Predicate;Lfnz$a;)Lfnz$a;
    • isMouseOver

      public boolean isMouseOver(double mouseX, double mouseY)
      Checks if the mouse position is within the bound of the element.
      Specified by:
      isMouseOver in interface Element
      Overrides:
      isMouseOver in class ClickableWidget
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      Returns:
      true if the mouse is within the bound of the element, otherwise false
      Mappings:
      Namespace Name Mixin selector
      named isMouseOver Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
      intermediary method_25405 Lnet/minecraft/class_364;method_25405(DD)Z
      official c Lfqc;c(DD)Z
    • renderList

      protected void renderList(DrawContext context, int mouseX, int mouseY, float delta)
      Mappings:
      Namespace Name Mixin selector
      named renderList Lnet/minecraft/client/gui/widget/EntryListWidget;renderList(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25311 Lnet/minecraft/class_350;method_25311(Lnet/minecraft/class_332;IIF)V
      official c Lfnz;c(Lfnr;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
      named renderEntry Lnet/minecraft/client/gui/widget/EntryListWidget;renderEntry(Lnet/minecraft/client/gui/DrawContext;IIFIIIII)V
      intermediary method_44397 Lnet/minecraft/class_350;method_44397(Lnet/minecraft/class_332;IIFIIIII)V
      official a Lfnz;a(Lfnr;IIFIIIII)V
    • drawSelectionHighlight

      protected void drawSelectionHighlight(DrawContext context, int y, int entryWidth, int entryHeight, int borderColor, int fillColor)
      Mappings:
      Namespace Name Mixin selector
      named drawSelectionHighlight Lnet/minecraft/client/gui/widget/EntryListWidget;drawSelectionHighlight(Lnet/minecraft/client/gui/DrawContext;IIIII)V
      intermediary method_44398 Lnet/minecraft/class_350;method_44398(Lnet/minecraft/class_332;IIIII)V
      official a Lfnz;a(Lfnr;IIIII)V
    • getRowLeft

      public int getRowLeft()
      Mappings:
      Namespace Name Mixin selector
      named getRowLeft Lnet/minecraft/client/gui/widget/EntryListWidget;getRowLeft()I
      intermediary method_25342 Lnet/minecraft/class_350;method_25342()I
      official s Lfnz;s()I
    • getBorderBoxLeft

      private int getBorderBoxLeft()
      Mappings:
      Namespace Name Mixin selector
      named getBorderBoxLeft Lnet/minecraft/client/gui/widget/EntryListWidget;getBorderBoxLeft()I
      intermediary method_57710 Lnet/minecraft/class_350;method_57710()I
      official c Lfnz;c()I
    • getRowRight

      public int getRowRight()
      Mappings:
      Namespace Name Mixin selector
      named getRowRight Lnet/minecraft/client/gui/widget/EntryListWidget;getRowRight()I
      intermediary method_31383 Lnet/minecraft/class_350;method_31383()I
      official t Lfnz;t()I
    • getBorderBoxRight

      private int getBorderBoxRight()
      Mappings:
      Namespace Name Mixin selector
      named getBorderBoxRight Lnet/minecraft/client/gui/widget/EntryListWidget;getBorderBoxRight()I
      intermediary method_57711 Lnet/minecraft/class_350;method_57711()I
      official J Lfnz;J()I
    • getRowTop

      public int getRowTop(int index)
      Mappings:
      Namespace Name Mixin selector
      named getRowTop Lnet/minecraft/client/gui/widget/EntryListWidget;getRowTop(I)I
      intermediary method_25337 Lnet/minecraft/class_350;method_25337(I)I
      official e Lfnz;e(I)I
    • getRowBottom

      public int getRowBottom(int index)
      Mappings:
      Namespace Name Mixin selector
      named getRowBottom Lnet/minecraft/client/gui/widget/EntryListWidget;getRowBottom(I)I
      intermediary method_25319 Lnet/minecraft/class_350;method_25319(I)I
      official f Lfnz;f(I)I
    • getRowWidth

      public int getRowWidth()
      Mappings:
      Namespace Name Mixin selector
      named getRowWidth Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
      intermediary method_25322 Lnet/minecraft/class_350;method_25322()I
      official a Lfnz;a()I
    • getType

      public Selectable.SelectionType getType()
      Specified by:
      getType in interface Selectable
      Overrides:
      getType in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/gui/Selectable;getType()Lnet/minecraft/client/gui/Selectable$SelectionType;
      intermediary method_37018 Lnet/minecraft/class_6379;method_37018()Lnet/minecraft/class_6379$class_6380;
      official u Lfsa;u()Lfsa$a;
    • remove

      @Nullable protected E remove(int index)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/client/gui/widget/EntryListWidget;remove(I)Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_25338 Lnet/minecraft/class_350;method_25338(I)Lnet/minecraft/class_350$class_351;
      official g Lfnz;g(I)Lfnz$a;
    • removeEntry

      protected boolean removeEntry(E entry)
      Mappings:
      Namespace Name Mixin selector
      named removeEntry Lnet/minecraft/client/gui/widget/EntryListWidget;removeEntry(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)Z
      intermediary method_25330 Lnet/minecraft/class_350;method_25330(Lnet/minecraft/class_350$class_351;)Z
      official g Lfnz;g(Lfnz$a;)Z
    • getHoveredEntry

      @Nullable protected E getHoveredEntry()
      Mappings:
      Namespace Name Mixin selector
      named getHoveredEntry Lnet/minecraft/client/gui/widget/EntryListWidget;getHoveredEntry()Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;
      intermediary method_37019 Lnet/minecraft/class_350;method_37019()Lnet/minecraft/class_350$class_351;
      official v Lfnz;v()Lfnz$a;
    • setEntryParentList

      void setEntryParentList(EntryListWidget.Entry<E> entry)
      Mappings:
      Namespace Name Mixin selector
      named setEntryParentList Lnet/minecraft/client/gui/widget/EntryListWidget;setEntryParentList(Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
      intermediary method_29621 Lnet/minecraft/class_350;method_29621(Lnet/minecraft/class_350$class_351;)V
      official h Lfnz;h(Lfnz$a;)V
    • appendNarrations

      protected void appendNarrations(NarrationMessageBuilder builder, E entry)
      Mappings:
      Namespace Name Mixin selector
      named appendNarrations Lnet/minecraft/client/gui/widget/EntryListWidget;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;)V
      intermediary method_37017 Lnet/minecraft/class_350;method_37017(Lnet/minecraft/class_6382;Lnet/minecraft/class_350$class_351;)V
      official a Lfnz;a(Lfsc;Lfnz$a;)V