public class DescriptiveText
extends java.lang.Object
Constructor and Description |
---|
DescriptiveText(java.lang.String text,
java.lang.String description,
int x,
int y,
TextAlignment align)
Initializes the text with description.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(com.mojang.blaze3d.matrix.MatrixStack matrix)
Draws the text.
|
java.lang.String |
getDescription()
Gets the description for the text.
|
boolean |
isHovering(int cursorX,
int cursorY)
Checks if the cursor is hovering over the text.
|
public DescriptiveText(java.lang.String text, java.lang.String description, int x, int y, TextAlignment align)
text
- The line of text to display.description
- A description for the line of text.x
- The x coordinate of the text.y
- The y coordinate of the text.align
- The alignment of the text.public void draw(com.mojang.blaze3d.matrix.MatrixStack matrix)
public boolean isHovering(int cursorX, int cursorY)
cursorX
- The x coordinate of the cursor.cursorY
- The y coordinate of the cursor.public java.lang.String getDescription()