public class ToggleWidget extends Widget
修飾子とタイプ | フィールドと説明 |
---|---|
protected ResourceLocation |
resourceLocation |
protected boolean |
stateTriggered |
protected int |
xDiffTex |
protected int |
xTexStart |
protected int |
yDiffTex |
protected 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
コンストラクタと説明 |
---|
ToggleWidget(int xIn,
int yIn,
int widthIn,
int heightIn,
boolean triggered) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
initTextureValues(int xTexStartIn,
int yTexStartIn,
int xDiffTexIn,
int yDiffTexIn,
ResourceLocation resourceLocationIn) |
boolean |
isStateTriggered() |
void |
renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_) |
void |
setPosition(int xIn,
int yIn) |
void |
setStateTriggered(boolean triggered) |
changeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, 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, keyPressed, keyReleased, mouseMoved, mouseScrolled
protected ResourceLocation resourceLocation
protected boolean stateTriggered
protected int xTexStart
protected int yTexStart
protected int xDiffTex
protected int yDiffTex
public ToggleWidget(int xIn, int yIn, int widthIn, int heightIn, boolean triggered)
public void initTextureValues(int xTexStartIn, int yTexStartIn, int xDiffTexIn, int yDiffTexIn, ResourceLocation resourceLocationIn)
public void setStateTriggered(boolean triggered)
public boolean isStateTriggered()
public void setPosition(int xIn, int yIn)
public void renderButton(int p_renderButton_1_, int p_renderButton_2_, float p_renderButton_3_)
renderButton
クラス内 Widget