public class GuiElementText extends GuiElementSimple
| Modifier and Type | Field and Description |
|---|---|
boolean |
centered |
boolean |
dropShadow |
boolean |
foreground |
gui, name| Constructor and Description |
|---|
GuiElementText(BuildCraftGui gui,
IGuiPosition parent,
java.lang.String text,
int colour) |
GuiElementText(BuildCraftGui gui,
IGuiPosition parent,
java.util.function.Supplier<java.lang.String> text,
int colour) |
GuiElementText(BuildCraftGui 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(BuildCraftGui gui, IGuiPosition parent, java.util.function.Supplier<java.lang.String> text, java.util.function.IntSupplier colour)
public GuiElementText(BuildCraftGui gui, IGuiPosition parent, java.util.function.Supplier<java.lang.String> text, int colour)
public GuiElementText(BuildCraftGui 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 GuiElementSimplepublic double getHeight()
getHeight in interface IGuiAreagetHeight in class GuiElementSimplepublic 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