public class Label extends AbstractSimiWidget
| Modifier and Type | Field and Description |
|---|---|
protected int |
color |
protected net.minecraft.client.gui.FontRenderer |
font |
protected boolean |
hasShadow |
java.lang.String |
suffix |
net.minecraft.util.text.ITextComponent |
text |
onClick, toolTip, wasHovered, z| Constructor and Description |
|---|
Label(int x,
int y,
net.minecraft.util.text.ITextComponent text) |
| Modifier and Type | Method and Description |
|---|---|
Label |
colored(int color) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
void |
setTextAndTrim(net.minecraft.util.text.ITextComponent newText,
boolean trimFront,
int maxWidthPx) |
Label |
withShadow() |
Label |
withSuffix(java.lang.String s) |
afterRender, atZLevel, beforeRender, clicked, getToolTip, onClick, renderButton, runCallback, tick, withCallback, withCallbackchangeFocus, clearFGColor, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic net.minecraft.util.text.ITextComponent text
public java.lang.String suffix
protected boolean hasShadow
protected int color
protected net.minecraft.client.gui.FontRenderer font
public Label colored(int color)
public Label withShadow()
public Label withSuffix(java.lang.String s)
public void setTextAndTrim(net.minecraft.util.text.ITextComponent newText,
boolean trimFront,
int maxWidthPx)
public void render(@Nonnull
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class AbstractSimiWidget