Package net.minecraft.client.gui.screen
Class GameModeSelectionScreen.ButtonWidget
java.lang.Object
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 intermediary net/minecraft/class_5289$class_5291official evb$bnamed 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
FieldsModifier and TypeFieldDescription(package private) final GameModeSelectionScreen.GameModeSelectionprivate booleanFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionButtonWidget(GameModeSelectionScreen.GameModeSelection gameMode, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voiddrawBackground(DrawContext context) private voiddrawSelectionBox(DrawContext context) booleanvoidrenderButton(DrawContext context, int mouseX, int mouseY, float delta) voidsetSelected(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, getTooltip, 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, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
gameMode
- Mappings:
Namespace Name Mixin selector intermediary field_24586Lnet/minecraft/class_5289$class_5291;field_24586:Lnet/minecraft/class_5289$class_5290;official bLevb$b;b:Levb$a;named gameModeLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;gameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
-
selected
private boolean selected- Mappings:
Namespace Name Mixin selector intermediary field_24587Lnet/minecraft/class_5289$class_5291;field_24587:Zofficial cLevb$b;c:Znamed selectedLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;selected:Z
-
-
Constructor Details
-
ButtonWidget
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_5289$class_5291;<init>(Lnet/minecraft/class_5289;Lnet/minecraft/class_5289$class_5290;II)Vofficial <init>Levb$b;<init>(Levb;Levb$a;II)Vnamed <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:
renderButtonin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLeox;b(Leop;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLeox;a(Lesg;)Vnamed appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
isSelected
public boolean isSelected()- Overrides:
isSelectedin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_25367Lnet/minecraft/class_339;method_25367()Zofficial nLeox;n()Znamed isSelectedLnet/minecraft/client/gui/widget/ClickableWidget;isSelected()Z
-
setSelected
public void setSelected(boolean selected) - Mappings:
Namespace Name Mixin selector intermediary method_28083Lnet/minecraft/class_5289$class_5291;method_28083(Z)Vofficial bLevb$b;b(Z)Vnamed setSelectedLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;setSelected(Z)V
-
drawBackground
- Mappings:
Namespace Name Mixin selector intermediary method_28080Lnet/minecraft/class_5289$class_5291;method_28080(Lnet/minecraft/class_332;)Vofficial aLevb$b;a(Leop;)Vnamed drawBackgroundLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawBackground(Lnet/minecraft/client/gui/DrawContext;)V
-
drawSelectionBox
- Mappings:
Namespace Name Mixin selector intermediary method_28082Lnet/minecraft/class_5289$class_5291;method_28082(Lnet/minecraft/class_332;)Vofficial bLevb$b;b(Leop;)Vnamed drawSelectionBoxLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawSelectionBox(Lnet/minecraft/client/gui/DrawContext;)V
-