public class LabelWidget
extends net.minecraft.client.gui.widget.Widget
Modifier and Type | Field and Description |
---|---|
int |
id |
Constructor and Description |
---|
LabelWidget(java.lang.String text,
int id,
int x,
int y,
int width,
int height,
int textColor) |
Modifier and Type | Method and Description |
---|---|
void |
addLine(java.lang.String text) |
void |
clearLines() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
setCentered(boolean isCentered) |
void |
setDimensions(int x,
int y,
int width,
int height) |
void |
setTextColor(int textColor) |
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, renderBg, renderButton, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
public LabelWidget(java.lang.String text, int id, int x, int y, int width, int height, int textColor)
public void setDimensions(int x, int y, int width, int height)
public void addLine(java.lang.String text)
public void clearLines()
public void setTextColor(int textColor)
public void setCentered(boolean isCentered)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.widget.Widget