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, getY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHelpElements, addToolTips, getThisAndChildrenAt, tick
asImmutable, 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, resize
public 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 IGuiArea
getWidth
in class GuiElementSimple<GuiBC8<?>>
public double getHeight()
getHeight
in interface IGuiArea
getHeight
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)
IGuiElement
getDebugInfo
in interface IGuiElement
getDebugInfo
in class GuiElementSimple<GuiBC8<?>>