Class AbstractSelectionList.Entry<E extends AbstractSelectionList.Entry<E>>

java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
All Implemented Interfaces:
GuiEventListener, TabOrderedElement
Direct Known Subclasses:
ContainerObjectSelectionList.Entry, ObjectSelectionList.Entry
Enclosing class:
AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>

protected abstract static class AbstractSelectionList.Entry<E extends AbstractSelectionList.Entry<E>> extends Object implements GuiEventListener
  • Field Details

  • Constructor Details

    • Entry

      protected Entry()
  • Method Details

    • setFocused

      public void setFocused(boolean focused)
      Sets the focus state of the GUI element.
      Specified by:
      setFocused in interface GuiEventListener
      Parameters:
      focused - true to apply focus, false to remove focus
    • isFocused

      public boolean isFocused()
      Specified by:
      isFocused in interface GuiEventListener
    • render

      public abstract void render(GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick)
    • renderBack

      public void renderBack(GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick)
    • isMouseOver

      public boolean isMouseOver(double mouseX, double mouseY)
      Checks if the given mouse coordinates are over the GUI element.

      Specified by:
      isMouseOver in interface GuiEventListener
      Parameters:
      mouseX - the X coordinate of the mouse.
      mouseY - the Y coordinate of the mouse.
      Returns:
      true if the mouse is over the GUI element, false otherwise.