Package net.minecraft.client.gui.screen
Class GameModeSwitcherScreen.ButtonWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.screen.GameModeSwitcherScreen.ButtonWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Enclosing class:
GameModeSwitcherScreen
@Environment(CLIENT)
public static class GameModeSwitcherScreen.ButtonWidget
extends ClickableWidget
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidgetintermediary net/minecraft/class_5289$class_5291official gac$b
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final GameModeSwitcherScreen.GameModeSelectionprivate booleanFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionButtonWidget(GameModeSwitcherScreen.GameModeSelection gameMode, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voiddrawBackground(DrawContext context) private voiddrawSelectionBox(DrawContext context) booleanvoidrenderWidget(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidsetSelected(boolean selected) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, 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, getBorder, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
gameMode
- Mappings:
Namespace Name Mixin selector named gameModeLnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;gameMode:Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;intermediary field_24586Lnet/minecraft/class_5289$class_5291;field_24586:Lnet/minecraft/class_5289$class_5290;official aLgac$b;a:Lgac$a;
-
selected
private boolean selected- Mappings:
Namespace Name Mixin selector named selectedLnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;selected:Zintermediary field_24587Lnet/minecraft/class_5289$class_5291;field_24587:Zofficial bLgac$b;b:Z
-
-
Constructor Details
-
ButtonWidget
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;<init>(Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;II)Vintermediary <init>Lnet/minecraft/class_5289$class_5291;<init>(Lnet/minecraft/class_5289$class_5290;II)Vofficial <init>Lgac$b;<init>(Lgac$a;II)V
-
-
Method Details
-
renderWidget
- Specified by:
renderWidgetin classClickableWidget- Mappings:
Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLftw;b(Lftk;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector named appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLftw;a(Lfxv;)V
-
isSelected
public boolean isSelected()- Overrides:
isSelectedin classClickableWidget- Mappings:
Namespace Name Mixin selector named isSelectedLnet/minecraft/client/gui/widget/ClickableWidget;isSelected()Zintermediary method_25367Lnet/minecraft/class_339;method_25367()Zofficial DLftw;D()Z
-
setSelected
public void setSelected(boolean selected) - Mappings:
Namespace Name Mixin selector named setSelectedLnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;setSelected(Z)Vintermediary method_28083Lnet/minecraft/class_5289$class_5291;method_28083(Z)Vofficial bLgac$b;b(Z)V
-
drawBackground
- Mappings:
Namespace Name Mixin selector named drawBackgroundLnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;drawBackground(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_28080Lnet/minecraft/class_5289$class_5291;method_28080(Lnet/minecraft/class_332;)Vofficial aLgac$b;a(Lftk;)V
-
drawSelectionBox
- Mappings:
Namespace Name Mixin selector named drawSelectionBoxLnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;drawSelectionBox(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_28082Lnet/minecraft/class_5289$class_5291;method_28082(Lnet/minecraft/class_332;)Vofficial bLgac$b;b(Lftk;)V
-