public class ImageClickableButton extends IndexedButton
id
NO_TOOLTIP, onPress, onTooltip
Constructor and Description |
---|
ImageClickableButton(int buttonId,
int x,
int y,
int textureX,
int textureY,
int width,
int height,
net.minecraft.client.gui.widget.button.Button.IPressable action) |
Modifier and Type | Method and Description |
---|---|
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
setImage(net.minecraft.util.ResourceLocation resource) |
ImageClickableButton |
updatePosition(int x,
int y) |
getID, setMessage
onPress, renderButton, renderToolTip
keyPressed, onClick
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseDragged, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
public ImageClickableButton(int buttonId, int x, int y, int textureX, int textureY, int width, int height, net.minecraft.client.gui.widget.button.Button.IPressable action)
public ImageClickableButton updatePosition(int x, int y)
public void setImage(net.minecraft.util.ResourceLocation resource)
public boolean mouseClicked(double mouseX, double mouseY, int button)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in class net.minecraft.client.gui.widget.Widget
public boolean mouseReleased(double mouseX, double mouseY, int button)
mouseReleased
in interface net.minecraft.client.gui.IGuiEventListener
mouseReleased
in class net.minecraft.client.gui.widget.Widget
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.widget.Widget