Class ListHudElement.ListItem
java.lang.Object
org.rusherhack.client.api.feature.hud.ListHudElement.ListItem
- Enclosing class:
- ListHudElement
An item that gets rendered in this list
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
org.rusherhack.core.animation.Animation
int
getColor
(int index) double
abstract net.minecraft.network.chat.Component
getText()
double
getWidth()
void
render
(RenderContext renderContext, int indexInList) abstract boolean
void
tick()
Updates the animation state of this itemtoString()
-
Constructor Details
-
ListItem
-
-
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
-
tick
public void tick()Updates the animation state of this item -
toString
-
equals
-
getColor
public int getColor(int index) -
getAnimation
public org.rusherhack.core.animation.Animation getAnimation() -
getRenderer
-
getFontRenderer
-
getParent
-