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$ButtonWidget
intermediary net/minecraft/class_5289$class_5291
official gac$b
  • Field Details Link icon

    • gameMode Link icon

      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;gameMode:Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;
      intermediary field_24586 Lnet/minecraft/class_5289$class_5291;field_24586:Lnet/minecraft/class_5289$class_5290;
      official a Lgac$b;a:Lgac$a;
    • selected Link icon

      private boolean selected
      Mappings:
      Namespace Name Mixin selector
      named selected Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;selected:Z
      intermediary field_24587 Lnet/minecraft/class_5289$class_5291;field_24587:Z
      official b Lgac$b;b:Z
  • Constructor Details Link icon

    • ButtonWidget Link icon

      public ButtonWidget(GameModeSwitcherScreen.GameModeSelection gameMode, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;<init>(Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;II)V
      intermediary <init> Lnet/minecraft/class_5289$class_5291;<init>(Lnet/minecraft/class_5289$class_5290;II)V
      official <init> Lgac$b;<init>(Lgac$a;II)V
  • Method Details Link icon

    • renderWidget Link icon

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

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      official a Lftw;a(Lfxv;)V
    • isSelected Link icon

      public boolean isSelected()
      Overrides:
      isSelected in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named isSelected Lnet/minecraft/client/gui/widget/ClickableWidget;isSelected()Z
      intermediary method_25367 Lnet/minecraft/class_339;method_25367()Z
      official D Lftw;D()Z
    • setSelected Link icon

      public void setSelected(boolean selected)
      Mappings:
      Namespace Name Mixin selector
      named setSelected Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$ButtonWidget;setSelected(Z)V
      intermediary method_28083 Lnet/minecraft/class_5289$class_5291;method_28083(Z)V
      official b Lgac$b;b(Z)V
    • drawBackground Link icon

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

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