public class IconButton extends AbstractSimiWidget
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
pressed |
onClick, toolTip, wasHovered, z| Constructor and Description |
|---|
IconButton(int x,
int y,
AllIcons icon) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClick(double p_onClick_1_,
double p_onClick_3_) |
void |
onRelease(double p_onRelease_1_,
double p_onRelease_3_) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
void |
setIcon(AllIcons icon) |
void |
setToolTip(net.minecraft.util.text.ITextComponent text) |
afterRender, atZLevel, beforeRender, clicked, getToolTip, render, runCallback, tick, withCallback, withCallbackchangeFocus, clearFGColor, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, 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 IconButton(int x,
int y,
AllIcons icon)
public void renderButton(@Nonnull
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
renderButton in class AbstractSimiWidgetpublic void onClick(double p_onClick_1_,
double p_onClick_3_)
onClick in class AbstractSimiWidgetpublic void onRelease(double p_onRelease_1_,
double p_onRelease_3_)
onRelease in class net.minecraft.client.gui.widget.Widgetpublic void setToolTip(net.minecraft.util.text.ITextComponent text)
public void setIcon(AllIcons icon)