Class ListHudElement.ListItem

java.lang.Object
org.rusherhack.client.api.feature.hud.ListHudElement.ListItem
Enclosing class:
ListHudElement

public abstract class ListHudElement.ListItem extends Object
An item that gets rendered in this list
  • Constructor Details

  • Method Details

    • getText

      public abstract net.minecraft.network.chat.Component getText()
      Returns:
      The text that will represent this item
    • shouldRemove

      public abstract boolean shouldRemove()
      Returns:
      the condition that must be met to remove this item
    • getHeight

      public double getHeight()
    • getWidth

      public double getWidth()
    • render

      public void render(RenderContext renderContext, int indexInList)
    • tick

      public void tick()
      Updates the animation state of this item
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getColor

      public int getColor(int index)
    • getAnimation

      public org.rusherhack.core.animation.Animation getAnimation()
    • getRenderer

      public IRenderer2D getRenderer()
    • getFontRenderer

      public IFontRenderer getFontRenderer()
    • getParent

      public ListHudElement getParent()