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
official etv
intermediary net/minecraft/class_361
named net/minecraft/client/gui/widget/ToggleButtonWidget
  • Field Details

    • textures

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

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

    • ToggleButtonWidget

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

    • setTextures

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

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

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

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Leso;a(Lewi;)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
    • 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 Leso;b(Lesf;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