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

java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
All Implemented Interfaces:
GuiEventListener, TabOrderedElement, LayoutElement
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, LayoutElement
  • Field Details

  • Constructor Details

    • Entry

      protected Entry()
  • Method Details

    • setFocused

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

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

      public abstract void renderContent(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, boolean pIsHovering, float pPartialTick)
    • isMouseOver

      public boolean isMouseOver(double pMouseX, double pMouseY)
      Description copied from interface: GuiEventListener
      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.
    • setX

      public void setX(int p_439711_)
      Specified by:
      setX in interface LayoutElement
    • setY

      public void setY(int p_439000_)
      Specified by:
      setY in interface LayoutElement
    • setWidth

      public void setWidth(int pWidth)
    • setHeight

      public void setHeight(int pHeight)
    • getContentX

      public int getContentX()
    • getContentY

      public int getContentY()
    • getContentHeight

      public int getContentHeight()
    • getContentYMiddle

      public int getContentYMiddle()
    • getContentBottom

      public int getContentBottom()
    • getContentWidth

      public int getContentWidth()
    • getContentXMiddle

      public int getContentXMiddle()
    • getContentRight

      public int getContentRight()
    • getX

      public int getX()
      Specified by:
      getX in interface LayoutElement
    • getY

      public int getY()
      Specified by:
      getY in interface LayoutElement
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface LayoutElement
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface LayoutElement
    • visitWidgets

      public void visitWidgets(Consumer<AbstractWidget> p_439025_)
      Specified by:
      visitWidgets in interface LayoutElement
    • getRectangle

      public ScreenRectangle getRectangle()
      Specified by:
      getRectangle in interface GuiEventListener
      Specified by:
      getRectangle in interface LayoutElement