@Environment(value=CLIENT) public class GameModeSelectionScreen.ButtonWidget extends AbstractButtonWidget
Modifier and Type | Field and Description |
---|---|
private GameModeSelectionScreen.GameMode |
gameMode |
private boolean |
selected |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
ButtonWidget(GameModeSelectionScreen.GameMode gameMode,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
private void |
drawBackground(MatrixStack matrices,
TextureManager textureManager) |
private void |
drawSelectionBox(MatrixStack matrices,
TextureManager textureManager) |
boolean |
isHovered() |
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
setSelected(boolean selected) |
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidth
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
private final GameModeSelectionScreen.GameMode gameMode
private boolean selected
public ButtonWidget(GameModeSelectionScreen.GameMode gameMode, int x, int y)
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton
in class AbstractButtonWidget
public boolean isHovered()
isHovered
in class AbstractButtonWidget
public void setSelected(boolean selected)
private void drawBackground(MatrixStack matrices, TextureManager textureManager)
private void drawSelectionBox(MatrixStack matrices, TextureManager textureManager)