@Environment(value=CLIENT) class BeaconScreen.EffectButtonWidget extends BeaconScreen.BaseButtonWidget
| Modifier and Type | Field and Description |
|---|---|
private StatusEffect |
effect |
private boolean |
primary |
private Sprite |
sprite |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
EffectButtonWidget(int x,
int y,
StatusEffect statusEffect,
boolean primary) |
| Modifier and Type | Method and Description |
|---|---|
void |
onPress() |
protected void |
renderExtra() |
void |
renderToolTip(int mouseX,
int mouseY) |
isDisabled, renderButton, setDisabledkeyPressed, onClickchangeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseMoved, mouseScrolledprivate final StatusEffect effect
private final Sprite sprite
private final boolean primary
public EffectButtonWidget(int x,
int y,
StatusEffect statusEffect,
boolean primary)
public void onPress()
onPress in class AbstractPressableButtonWidgetpublic void renderToolTip(int mouseX,
int mouseY)
renderToolTip in class AbstractButtonWidgetprotected void renderExtra()
renderExtra in class BeaconScreen.BaseButtonWidget