Class EntryListWidget.Entry<E extends EntryListWidget.Entry<E>>

java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
All Implemented Interfaces:
Element, Navigable
Direct Known Subclasses:
AlwaysSelectedEntryListWidget.Entry, ElementListWidget.Entry
Enclosing class:
EntryListWidget<E extends EntryListWidget.Entry<E>>

@Environment(CLIENT) protected abstract static class EntryListWidget.Entry<E extends EntryListWidget.Entry<E>> extends Object implements Element
Mappings:
Namespace Name
official esl$a
intermediary net/minecraft/class_350$class_351
named net/minecraft/client/gui/widget/EntryListWidget$Entry
  • Field Details

    • parentList

      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Lesl$a;a:Lesl;
      intermediary field_22752 Lnet/minecraft/class_350$class_351;field_22752:Lnet/minecraft/class_350;
      named parentList Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;parentList:Lnet/minecraft/client/gui/widget/EntryListWidget;
  • Constructor Details

    • Entry

      protected Entry()
  • Method Details

    • setFocused

      public void setFocused(boolean bool)
      Specified by:
      setFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      official method_25365 Lesl$a;method_25365(Z)V
      intermediary method_25365 Lnet/minecraft/class_350$class_351;method_25365(Z)V
      named setFocused Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;setFocused(Z)V
    • isFocused

      public boolean isFocused()
      Specified by:
      isFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      official method_25370 Lesl$a;method_25370()Z
      intermediary method_25370 Lnet/minecraft/class_350$class_351;method_25370()Z
      named isFocused Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;isFocused()Z
    • render

      public abstract void render(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
      Renders an entry in a list.
      Parameters:
      index - the index of the entry
      y - the Y coordinate of the entry
      x - the X coordinate of the entry
      entryWidth - the width of the entry
      entryHeight - the height of the entry
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      hovered - whether the mouse is hovering over the entry
      Mappings:
      Namespace Name Mixin selector
      official a Lesl$a;a(Lesf;IIIIIIIZF)V
      intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)V
      named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
    • drawBorder

      public void drawBorder(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official b Lesl$a;b(Lesf;IIIIIIIZF)V
      intermediary method_49568 Lnet/minecraft/class_350$class_351;method_49568(Lnet/minecraft/class_332;IIIIIIIZF)V
      named drawBorder Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;drawBorder(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
    • isMouseOver

      public boolean isMouseOver(double double2, double double3)
      Description copied from interface: Element
      Checks if the mouse position is within the bound of the element.
      Specified by:
      isMouseOver in interface Element
      Parameters:
      double2 - the X coordinate of the mouse
      double3 - 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
      official method_25405 Lesl$a;method_25405(DD)Z
      intermediary method_25405 Lnet/minecraft/class_350$class_351;method_25405(DD)Z
      named isMouseOver Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;isMouseOver(DD)Z