public class WidgetLabel extends net.minecraft.client.gui.widget.Widget implements ITooltipProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
WidgetLabel.Alignment |
| Constructor and Description |
|---|
WidgetLabel(int x,
int y,
net.minecraft.util.text.ITextComponent text) |
WidgetLabel(int x,
int y,
net.minecraft.util.text.ITextComponent text,
int color) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTip,
boolean shift) |
protected boolean |
clicked(double mouseX,
double mouseY) |
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltip() |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTick) |
WidgetLabel |
setAlignment(WidgetLabel.Alignment alignment) |
WidgetLabel |
setColor(int color) |
void |
setMessage(net.minecraft.util.text.ITextComponent p_setMessage_1_) |
WidgetLabel |
setScale(float scale) |
WidgetLabel |
setTooltip(net.minecraft.util.text.ITextComponent tooltip) |
WidgetLabel |
setTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip) |
changeFocus, clearFGColor, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic WidgetLabel(int x,
int y,
net.minecraft.util.text.ITextComponent text)
public WidgetLabel(int x,
int y,
net.minecraft.util.text.ITextComponent text,
int color)
public WidgetLabel setAlignment(WidgetLabel.Alignment alignment)
public WidgetLabel setScale(float scale)
protected boolean clicked(double mouseX,
double mouseY)
clicked in class net.minecraft.client.gui.widget.Widgetpublic void addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTip,
boolean shift)
addTooltip in interface ITooltipProviderpublic WidgetLabel setTooltip(net.minecraft.util.text.ITextComponent tooltip)
public WidgetLabel setTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip)
public java.util.List<net.minecraft.util.text.ITextComponent> getTooltip()
public WidgetLabel setColor(int color)
public void setMessage(net.minecraft.util.text.ITextComponent p_setMessage_1_)
setMessage in class net.minecraft.client.gui.widget.Widgetpublic void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTick)
renderButton in class net.minecraft.client.gui.widget.Widget