public class GuiElementText extends GuiElementSimple<GuiBC8<?>>
| Modifier and Type | Field and Description |
|---|---|
boolean |
centered |
boolean |
dropShadow |
boolean |
foreground |
gui, name| Constructor and Description |
|---|
GuiElementText(GuiBC8<?> gui,
IGuiPosition parent,
java.lang.String text,
int colour) |
GuiElementText(GuiBC8<?> gui,
IGuiPosition parent,
java.util.function.Supplier<java.lang.String> text,
int colour) |
GuiElementText(GuiBC8<?> gui,
IGuiPosition parent,
java.util.function.Supplier<java.lang.String> text,
java.util.function.IntSupplier colour) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackground(float partialTicks) |
void |
drawForeground(float partialTicks) |
java.lang.String |
getDebugInfo(java.util.List<java.lang.String> info)
Add debugging information to the list.
|
double |
getHeight() |
double |
getWidth() |
GuiElementText |
setCentered(boolean centered) |
GuiElementText |
setDropShadow(boolean value) |
GuiElementText |
setForeground(boolean value) |
getX, getYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHelpElements, addToolTips, getThisAndChildrenAt, tickasImmutable, contains, contains, contains, create, create, create, expand, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getPosition, offset, offset, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resizepublic boolean dropShadow
public boolean foreground
public boolean centered
public GuiElementText(GuiBC8<?> gui, IGuiPosition parent, java.util.function.Supplier<java.lang.String> text, java.util.function.IntSupplier colour)
public GuiElementText(GuiBC8<?> gui, IGuiPosition parent, java.util.function.Supplier<java.lang.String> text, int colour)
public GuiElementText(GuiBC8<?> gui, IGuiPosition parent, java.lang.String text, int colour)
public GuiElementText setDropShadow(boolean value)
public GuiElementText setForeground(boolean value)
public GuiElementText setCentered(boolean centered)
public double getWidth()
getWidth in interface IGuiAreagetWidth in class GuiElementSimple<GuiBC8<?>>public double getHeight()
getHeight in interface IGuiAreagetHeight in class GuiElementSimple<GuiBC8<?>>public void drawBackground(float partialTicks)
public void drawForeground(float partialTicks)
public java.lang.String getDebugInfo(java.util.List<java.lang.String> info)
IGuiElementgetDebugInfo in interface IGuiElementgetDebugInfo in class GuiElementSimple<GuiBC8<?>>