Class ToggleButtonWidget

java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ToggleButtonWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
RecipeGroupButtonWidget

@Environment(CLIENT) public class ToggleButtonWidget extends ClickableWidget
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/ToggleButtonWidget
intermediary net/minecraft/class_361
official fim
  • Field Details

    • textures

      @Nullable protected @Nullable ButtonTextures textures
      Mappings:
      Namespace Name Mixin selector
      named textures Lnet/minecraft/client/gui/widget/ToggleButtonWidget;textures:Lnet/minecraft/client/gui/screen/ButtonTextures;
      intermediary field_45390 Lnet/minecraft/class_361;field_45390:Lnet/minecraft/class_8666;
      official a Lfim;a:Lfit;
    • toggled

      protected boolean toggled
      Mappings:
      Namespace Name Mixin selector
      named toggled Lnet/minecraft/client/gui/widget/ToggleButtonWidget;toggled:Z
      intermediary field_2194 Lnet/minecraft/class_361;field_2194:Z
      official b Lfim;b:Z
  • Constructor Details

    • ToggleButtonWidget

      public ToggleButtonWidget(int x, int y, int width, int height, boolean toggled)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/ToggleButtonWidget;<init>(IIIIZ)V
      intermediary <init> Lnet/minecraft/class_361;<init>(IIIIZ)V
      official <init> Lfim;<init>(IIIIZ)V
  • Method Details

    • setTextures

      public void setTextures(ButtonTextures textures)
      Mappings:
      Namespace Name Mixin selector
      named setTextures Lnet/minecraft/client/gui/widget/ToggleButtonWidget;setTextures(Lnet/minecraft/client/gui/screen/ButtonTextures;)V
      intermediary method_1962 Lnet/minecraft/class_361;method_1962(Lnet/minecraft/class_8666;)V
      official a Lfim;a(Lfit;)V
    • setToggled

      public void setToggled(boolean toggled)
      Mappings:
      Namespace Name Mixin selector
      named setToggled Lnet/minecraft/client/gui/widget/ToggleButtonWidget;setToggled(Z)V
      intermediary method_1964 Lnet/minecraft/class_361;method_1964(Z)V
      official b Lfim;b(Z)V
    • isToggled

      public boolean isToggled()
      Mappings:
      Namespace Name Mixin selector
      named isToggled Lnet/minecraft/client/gui/widget/ToggleButtonWidget;isToggled()Z
      intermediary method_1965 Lnet/minecraft/class_361;method_1965()Z
      official a Lfim;a()Z
    • appendClickableNarrations

      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 Lfhe;a(Lflc;)V
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      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 Lfhe;b(Lfgt;IIF)V