@Environment(value=CLIENT) abstract static class BeaconScreen.BaseButtonWidget extends AbstractPressableButtonWidget
Modifier and Type | Field and Description |
---|---|
private boolean |
disabled |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE
Modifier | Constructor and Description |
---|---|
protected |
BaseButtonWidget(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDisabled() |
void |
renderButton(int mouseX,
int mouseY,
float delta) |
protected abstract void |
renderExtra() |
void |
setDisabled(boolean disabled) |
keyPressed, onClick, onPress
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidth
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyReleased, mouseMoved, mouseScrolled
public void renderButton(int mouseX, int mouseY, float delta)
renderButton
in class AbstractButtonWidget
protected abstract void renderExtra()
public boolean isDisabled()
public void setDisabled(boolean disabled)