public abstract class ComponentStatistic extends GuiComponent
| Constructor and Description |
|---|
ComponentStatistic(Gui gui,
java.util.function.Supplier<java.lang.String> nameSupplier,
java.util.function.Supplier<java.lang.String> valueSupplier,
int priority,
java.util.function.Supplier<java.lang.Boolean> clickSupplier) |
| Modifier and Type | Method and Description |
|---|---|
ResourceName |
getName() |
int |
getPriority() |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
abstract void |
renderStatGraphic(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
boolean |
shouldDoFingerCursor(IGameInstance game) |
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, renderOverlay, setActive, setPos, toString, update, updateInactivepublic ComponentStatistic(Gui gui, java.util.function.Supplier<java.lang.String> nameSupplier, java.util.function.Supplier<java.lang.String> valueSupplier, int priority, java.util.function.Supplier<java.lang.Boolean> clickSupplier)
public int getPriority()
getPriority in class GuiComponentpublic void render(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
render in class GuiComponentpublic boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class GuiComponentpublic abstract void renderStatGraphic(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
public ResourceName getName()
getName in class GuiComponentpublic boolean shouldDoFingerCursor(IGameInstance game)
shouldDoFingerCursor in class GuiComponent