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, packedFGColor, 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 |
initTextureValues(int xTexStartIn,
int yTexStartIn,
int xDiffTexIn,
int yDiffTexIn,
ResourceLocation resourceLocationIn) |
boolean |
isStateTriggered() |
void |
render(int mouseX,
int mouseY,
float partialTicks) |
void |
setPosition(int xIn,
int yIn) |
void |
setStateTriggered(boolean p_191753_1_) |
drawButtonForegroundLayer, getHoverState, getWidth, isMouseOver, isPressable, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playPressSound, renderBg, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canFocus, charTyped, focusChanged, keyPressed, keyReleased, mouseScrolled
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 xIn, int yIn)