public class ComponentClickableText extends GuiComponent
| Constructor and Description |
|---|
ComponentClickableText(Gui gui,
int x,
int y,
float scale,
boolean fromRight,
java.util.function.Supplier<java.lang.Boolean> clickSupplier,
java.lang.String... text) |
| Modifier and Type | Method and Description |
|---|---|
IResourceName |
getName() |
java.lang.String[] |
getText() |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, renderOverlay, setActive, shouldDoFingerCursor, toString, updatepublic ComponentClickableText(Gui gui, int x, int y, float scale, boolean fromRight, java.util.function.Supplier<java.lang.Boolean> clickSupplier, java.lang.String... text)
public void render(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
render in class GuiComponentpublic java.lang.String[] getText()
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class GuiComponentpublic IResourceName getName()
getName in class GuiComponent