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 pFocused)
      Sets the focus state of the GUI element.
      Specified by:
      setFocused in interface GuiEventListener
      Parameters:
      pFocused - true to apply focus, false to remove focus
    • isFocused

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

      public abstract void render(GuiGraphics pGuiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean pHovering, float pPartialTick)
    • renderBack

      public void renderBack(GuiGraphics pGuiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean pIsMouseOver, float pPartialTick)
    • isMouseOver

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

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