public class HoverDisableButton extends IndexedButton
DropDown.idNO_TOOLTIP, onPress, onTooltip| Constructor and Description |
|---|
HoverDisableButton(int buttonId,
int x,
int y,
int widthIn,
int heightIn,
java.lang.String buttonText)
Initializes a button.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawCenteredStringColour(com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.gui.FontRenderer fontRendererIn,
java.lang.String text,
int x,
int y,
int color) |
protected int |
getYImage(boolean mouseOver) |
boolean |
isHovered() |
void |
setHoverDisabled(boolean hoverDisabled)
Sets whether mouse hover highlighting is disabled.
|
static void |
setHoverDisabledScreen(java.util.List<net.minecraft.client.gui.widget.Widget> widgets,
boolean hoverDisabled)
Sets the disabled status of all buttons in a screen.
|
getID, setMessageonPress, renderButton, renderToolTipkeyPressed, onClickchangeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, isFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic HoverDisableButton(int buttonId,
int x,
int y,
int widthIn,
int heightIn,
java.lang.String buttonText)
buttonId - The unique ID of the button.x - The x coordinate of the left side of the button.y - The y coordinate of the top of the button.widthIn - The width of the button.heightIn - The height of the button.buttonText - The text on the button.public void setHoverDisabled(boolean hoverDisabled)
hoverDisabled - Whether mouse hover highlighting is disabled.public boolean isHovered()
isHovered in class net.minecraft.client.gui.widget.Widgetprotected int getYImage(boolean mouseOver)
getYImage in class net.minecraft.client.gui.widget.Widgetpublic void drawCenteredStringColour(com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.gui.FontRenderer fontRendererIn,
java.lang.String text,
int x,
int y,
int color)
public static void setHoverDisabledScreen(java.util.List<net.minecraft.client.gui.widget.Widget> widgets,
boolean hoverDisabled)
widgets - The list of buttons on the screen.hoverDisabled - Whether to disable mouse hover highlighting on the buttons.