public class GuiIconButton
extends net.minecraft.client.gui.widget.button.Button
IDrawable
instead of a string label.Constructor and Description |
---|
GuiIconButton(mezz.jei.api.gui.drawable.IDrawable icon,
net.minecraft.client.gui.widget.button.Button.IPressable pressable) |
Modifier and Type | Method and Description |
---|---|
void |
render(int mouseX,
int mouseY,
float partialTicks) |
void |
updateBounds(net.minecraft.client.renderer.Rectangle2d area) |
keyPressed, onClick
changeFocus, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, renderBg, renderButton, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLine
public GuiIconButton(mezz.jei.api.gui.drawable.IDrawable icon, net.minecraft.client.gui.widget.button.Button.IPressable pressable)
public void updateBounds(net.minecraft.client.renderer.Rectangle2d area)
public void render(int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.widget.Widget