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

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

@Environment(CLIENT)
public abstract static class EntryListWidget.Entry<E extends EntryListWidget.Entry<E>>
extends Object
implements Element
  • Field Details

  • Constructor Details

    • Entry

      public Entry()
  • Method Details

    • render

      public abstract void render​(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
    • 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
      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