public class ImageButton extends Button
Button.IPressable
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
resourceLocation |
private int |
textureHeight |
private int |
textureWidth |
private int |
xTexStart |
private int |
yDiffText |
private int |
yTexStart |
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
ImageButton(int xIn,
int yIn,
int widthIn,
int heightIn,
int xTexStartIn,
int yTexStartIn,
int yDiffTextIn,
ResourceLocation resourceLocationIn,
Button.IPressable onPressIn) |
ImageButton(int xIn,
int yIn,
int widthIn,
int heightIn,
int xTexStartIn,
int yTexStartIn,
int yDiffTextIn,
ResourceLocation resourceLocationIn,
int p_i51135_9_,
int p_i51135_10_,
Button.IPressable onPressIn) |
ImageButton(int xIn,
int yIn,
int widthIn,
int heightIn,
int xTexStartIn,
int yTexStartIn,
int yDiffTextIn,
ResourceLocation resourceLocationIn,
int p_i51136_9_,
int p_i51136_10_,
Button.IPressable onPressIn,
java.lang.String textIn) |
Modifier and Type | Method and Description |
---|---|
void |
renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_) |
void |
setPosition(int xIn,
int yIn) |
keyPressed, onClick
changeFocus, clearFGColor, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyReleased, mouseMoved, mouseScrolled
private final ResourceLocation resourceLocation
private final int xTexStart
private final int yTexStart
private final int yDiffText
private final int textureWidth
private final int textureHeight
public ImageButton(int xIn, int yIn, int widthIn, int heightIn, int xTexStartIn, int yTexStartIn, int yDiffTextIn, ResourceLocation resourceLocationIn, Button.IPressable onPressIn)
public ImageButton(int xIn, int yIn, int widthIn, int heightIn, int xTexStartIn, int yTexStartIn, int yDiffTextIn, ResourceLocation resourceLocationIn, int p_i51135_9_, int p_i51135_10_, Button.IPressable onPressIn)
public ImageButton(int xIn, int yIn, int widthIn, int heightIn, int xTexStartIn, int yTexStartIn, int yDiffTextIn, ResourceLocation resourceLocationIn, int p_i51136_9_, int p_i51136_10_, Button.IPressable onPressIn, java.lang.String textIn)
public void setPosition(int xIn, int yIn)
public void renderButton(int p_renderButton_1_, int p_renderButton_2_, float p_renderButton_3_)
renderButton
in class Widget