Package net.minecraft.client.gui.screen
Class GameModeSelectionScreen.ButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.screen.GameModeSelectionScreen.ButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Enclosing class:
GameModeSelectionScreen
- Mappings:
Namespace Name official ety$b
intermediary net/minecraft/class_5289$class_5291
named net/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescription(package private) final GameModeSelectionScreen.GameModeSelection
private boolean
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionButtonWidget
(GameModeSelectionScreen.GameModeSelection gameMode, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
drawBackground
(MatrixStack matrices, TextureManager textureManager) private void
drawSelectionBox
(MatrixStack matrices, TextureManager textureManager) boolean
void
renderButton
(MatrixStack matrices, int mouseX, int mouseY, float delta) void
setSelected
(boolean selected) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
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, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
gameMode
- Mappings:
Namespace Name Mixin selector official b
Lety$b;b:Lety$a;
intermediary field_24586
Lnet/minecraft/class_5289$class_5291;field_24586:Lnet/minecraft/class_5289$class_5290;
named gameMode
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;gameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
-
selected
private boolean selected- Mappings:
Namespace Name Mixin selector official c
Lety$b;c:Z
intermediary field_24587
Lnet/minecraft/class_5289$class_5291;field_24587:Z
named selected
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;selected:Z
-
-
Constructor Details
-
ButtonWidget
- Mappings:
Namespace Name Mixin selector official <init>
Lety$b;<init>(Lety;Lety$a;II)V
intermediary <init>
Lnet/minecraft/class_5289$class_5291;<init>(Lnet/minecraft/class_5289;Lnet/minecraft/class_5289$class_5290;II)V
named <init>
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;<init>(Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;II)V
-
-
Method Details
-
renderButton
- Specified by:
renderButton
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official b
Lenz;b(Lehe;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lenz;a(Lere;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
isSelected
public boolean isSelected()- Overrides:
isSelected
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official n
Lenz;n()Z
intermediary method_25367
Lnet/minecraft/class_339;method_25367()Z
named isSelected
Lnet/minecraft/client/gui/widget/ClickableWidget;isSelected()Z
-
setSelected
public void setSelected(boolean selected) - Mappings:
Namespace Name Mixin selector official b
Lety$b;b(Z)V
intermediary method_28083
Lnet/minecraft/class_5289$class_5291;method_28083(Z)V
named setSelected
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;setSelected(Z)V
-
drawBackground
- Mappings:
Namespace Name Mixin selector official a
Lety$b;a(Lehe;Lftd;)V
intermediary method_28080
Lnet/minecraft/class_5289$class_5291;method_28080(Lnet/minecraft/class_4587;Lnet/minecraft/class_1060;)V
named drawBackground
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawBackground(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/texture/TextureManager;)V
-
drawSelectionBox
- Mappings:
Namespace Name Mixin selector official b
Lety$b;b(Lehe;Lftd;)V
intermediary method_28082
Lnet/minecraft/class_5289$class_5291;method_28082(Lnet/minecraft/class_4587;Lnet/minecraft/class_1060;)V
named drawSelectionBox
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawSelectionBox(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/texture/TextureManager;)V
-