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

@Environment(CLIENT) public class GameModeSelectionScreen.ButtonWidget extends ClickableWidget
Mappings:
Namespace Name
official evm$b
intermediary net/minecraft/class_5289$class_5291
named net/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget
  • Field Details

    • gameMode

      Mappings:
      Namespace Name Mixin selector
      official b Levm$b;b:Levm$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 Levm$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

      public ButtonWidget(GameModeSelectionScreen.GameModeSelection gameMode, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official <init> Levm$b;<init>(Levm;Levm$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

      public void renderButton(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      renderButton in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b(Leox;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • appendClickableNarrations

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lepf;a(Lesp;)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 class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official n Lepf;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 Levm$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

      private void drawBackground(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Levm$b;a(Leox;)V
      intermediary method_28080 Lnet/minecraft/class_5289$class_5291;method_28080(Lnet/minecraft/class_332;)V
      named drawBackground Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawBackground(Lnet/minecraft/client/gui/DrawContext;)V
    • drawSelectionBox

      private void drawSelectionBox(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      official b Levm$b;b(Leox;)V
      intermediary method_28082 Lnet/minecraft/class_5289$class_5291;method_28082(Lnet/minecraft/class_332;)V
      named drawSelectionBox Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawSelectionBox(Lnet/minecraft/client/gui/DrawContext;)V