@Environment(value=CLIENT) class BeaconScreen.EffectButtonWidget extends BeaconScreen.BaseButtonWidget
| Modifier and Type | Field and Description |
|---|---|
private StatusEffect |
effect |
private Text |
field_26562 |
private boolean |
primary |
private Sprite |
sprite |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
EffectButtonWidget(int x,
int y,
StatusEffect statusEffect,
boolean primary) |
| Modifier and Type | Method and Description |
|---|---|
private Text |
method_30902(StatusEffect statusEffect,
boolean bool) |
void |
onPress() |
protected void |
renderExtra(MatrixStack matrixStack) |
void |
renderToolTip(MatrixStack matrices,
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, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, 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
private final Text field_26562
public EffectButtonWidget(int x,
int y,
StatusEffect statusEffect,
boolean primary)
private Text method_30902(StatusEffect statusEffect, boolean bool)
public void onPress()
onPress in class AbstractPressableButtonWidgetpublic void renderToolTip(MatrixStack matrices, int mouseX, int mouseY)
renderToolTip in class AbstractButtonWidgetprotected void renderExtra(MatrixStack matrixStack)
renderExtra in class BeaconScreen.BaseButtonWidget