public class WidgetTooltipArea extends net.minecraft.client.gui.widget.Widget implements ITooltipProvider
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.util.text.ITextComponent[] |
tooltip |
| Constructor and Description |
|---|
WidgetTooltipArea(int x,
int y,
int width,
int height,
net.minecraft.util.text.ITextComponent... tooltip) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTip,
boolean shiftPressed) |
boolean |
changeFocus(boolean focus) |
protected boolean |
clicked(double mouseX,
double mouseY) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int p_render_1_,
int p_render_2_,
float p_render_3_) |
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, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic WidgetTooltipArea(int x,
int y,
int width,
int height,
net.minecraft.util.text.ITextComponent... tooltip)
public void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int p_render_1_,
int p_render_2_,
float p_render_3_)
renderButton in class net.minecraft.client.gui.widget.Widgetprotected 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 shiftPressed)
addTooltip in interface ITooltipProviderpublic boolean changeFocus(boolean focus)
changeFocus in interface net.minecraft.client.gui.IGuiEventListenerchangeFocus in class net.minecraft.client.gui.widget.Widget