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, setPressablekeyPressed, onClickchangeFocus, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLinepublic 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 UButtonprotected void resetColor()