public class GuiButtonToggle extends GuiButton
Modifier and Type | Field and Description |
---|---|
protected ResourceLocation |
resourceLocation |
protected boolean |
stateTriggered |
protected int |
xDiffTex |
protected int |
xTexStart |
protected int |
yDiffTex |
protected int |
yTexStart |
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, x, y
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiButtonToggle(int buttonId,
int xIn,
int yIn,
int widthIn,
int heightIn,
boolean buttonText) |
Modifier and Type | Method and Description |
---|---|
void |
drawButton(Minecraft mc,
int mouseX,
int mouseY,
float partialTicks) |
void |
initTextureValues(int xTexStartIn,
int yTexStartIn,
int xDiffTexIn,
int yDiffTexIn,
ResourceLocation resourceLocationIn) |
boolean |
isStateTriggered() |
void |
setPosition(int p_191752_1_,
int p_191752_2_) |
void |
setStateTriggered(boolean p_191753_1_) |
drawButtonForegroundLayer, getButtonWidth, getHoverState, isMouseOver, mouseDragged, mousePressed, mouseReleased, playPressSound, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
protected ResourceLocation resourceLocation
protected boolean stateTriggered
protected int xTexStart
protected int yTexStart
protected int xDiffTex
protected int yDiffTex
public GuiButtonToggle(int buttonId, int xIn, int yIn, int widthIn, int heightIn, boolean buttonText)
public void initTextureValues(int xTexStartIn, int yTexStartIn, int xDiffTexIn, int yDiffTexIn, ResourceLocation resourceLocationIn)
public void setStateTriggered(boolean p_191753_1_)
public boolean isStateTriggered()
public void setPosition(int p_191752_1_, int p_191752_2_)
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)
drawButton
in class GuiButton