static class GuiBeacon.Button extends GuiButton
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
iconTexture |
private int |
iconX |
private int |
iconY |
private boolean |
selected |
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, x, y
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Modifier | Constructor and Description |
---|---|
protected |
Button(int buttonId,
int x,
int y,
ResourceLocation iconTextureIn,
int iconXIn,
int iconYIn) |
Modifier and Type | Method and Description |
---|---|
void |
drawButton(Minecraft mc,
int mouseX,
int mouseY,
float partialTicks) |
boolean |
isSelected() |
void |
setSelected(boolean selectedIn) |
drawButtonForegroundLayer, getButtonWidth, getHoverState, isMouseOver, mouseDragged, mousePressed, mouseReleased, playPressSound, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private final ResourceLocation iconTexture
private final int iconX
private final int iconY
private boolean selected
protected Button(int buttonId, int x, int y, ResourceLocation iconTextureIn, int iconXIn, int iconYIn)
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)
drawButton
in class GuiButton
public boolean isSelected()
public void setSelected(boolean selectedIn)