Package net.minecraft.client.gui.screen
Class GameModeSelectionScreen.ButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.screen.GameModeSelectionScreen.ButtonWidget
- Enclosing class:
- GameModeSelectionScreen
@Environment(CLIENT) public class GameModeSelectionScreen.ButtonWidget extends AbstractButtonWidget
-
Field Summary
Fields Modifier and Type Field Description private GameModeSelectionScreen.GameMode
gameMode
private boolean
selected
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description ButtonWidget(GameModeSelectionScreen.GameMode gameMode, int x, int y)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
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
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
gameMode
-
selected
private boolean selected
-
-
Constructor Details
-
ButtonWidget
-
-
Method Details
-
renderButton
- Overrides:
renderButton
in classAbstractButtonWidget
-
isHovered
public boolean isHovered()- Overrides:
isHovered
in classAbstractButtonWidget
-
setSelected
public void setSelected(boolean selected) -
drawBackground
-
drawSelectionBox
-