public class ImageButton extends UButton
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.util.ResourceLocation |
resource |
EMTPY_PRESSABLE
Constructor and Description |
---|
ImageButton(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource) |
ImageButton(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource,
net.minecraft.client.gui.widget.button.Button.IPressable pressable) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.ResourceLocation |
getResource() |
void |
renderButton(int mouseX,
int mouseY,
float partial) |
protected void |
resetColor() |
void |
setResource(net.minecraft.util.ResourceLocation resource) |
setPressable, setPressable
keyPressed, onClick
changeFocus, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
public ImageButton(int x, int y, int width, int height, net.minecraft.util.ResourceLocation resource)
public ImageButton(int x, int y, int width, int height, net.minecraft.util.ResourceLocation resource, net.minecraft.client.gui.widget.button.Button.IPressable pressable)
public net.minecraft.util.ResourceLocation getResource()
public void setResource(net.minecraft.util.ResourceLocation resource)
public void renderButton(int mouseX, int mouseY, float partial)
renderButton
in class UButton
protected void resetColor()