Class CheckboxWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget

@Environment(CLIENT) public class CheckboxWidget extends PressableWidget
Mappings:
Namespace Name
official ess
intermediary net/minecraft/class_4286
named net/minecraft/client/gui/widget/CheckboxWidget
  • Field Details

    • SELECTED_HIGHLIGHTED_TEXTURE

      private static final Identifier SELECTED_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official a Less;a:Laew;
      intermediary field_45348 Lnet/minecraft/class_4286;field_45348:Lnet/minecraft/class_2960;
      named SELECTED_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/widget/CheckboxWidget;SELECTED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • SELECTED_TEXTURE

      private static final Identifier SELECTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official b Less;b:Laew;
      intermediary field_45349 Lnet/minecraft/class_4286;field_45349:Lnet/minecraft/class_2960;
      named SELECTED_TEXTURE Lnet/minecraft/client/gui/widget/CheckboxWidget;SELECTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • HIGHLIGHTED_TEXTURE

      private static final Identifier HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official c Less;c:Laew;
      intermediary field_45350 Lnet/minecraft/class_4286;field_45350:Lnet/minecraft/class_2960;
      named HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/widget/CheckboxWidget;HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • TEXTURE

      private static final Identifier TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official d Less;d:Laew;
      intermediary field_45351 Lnet/minecraft/class_4286;field_45351:Lnet/minecraft/class_2960;
      named TEXTURE Lnet/minecraft/client/gui/widget/CheckboxWidget;TEXTURE:Lnet/minecraft/util/Identifier;
    • TEXT_COLOR

      private static final int TEXT_COLOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Less;l:I
      intermediary field_32181 Lnet/minecraft/class_4286;field_32181:I
      named TEXT_COLOR Lnet/minecraft/client/gui/widget/CheckboxWidget;TEXT_COLOR:I
    • checked

      private boolean checked
      Mappings:
      Namespace Name Mixin selector
      official m Less;m:Z
      intermediary field_19230 Lnet/minecraft/class_4286;field_19230:Z
      named checked Lnet/minecraft/client/gui/widget/CheckboxWidget;checked:Z
    • showMessage

      private final boolean showMessage
      Mappings:
      Namespace Name Mixin selector
      official n Less;n:Z
      intermediary field_24253 Lnet/minecraft/class_4286;field_24253:Z
      named showMessage Lnet/minecraft/client/gui/widget/CheckboxWidget;showMessage:Z
  • Constructor Details

    • CheckboxWidget

      public CheckboxWidget(int x, int y, int width, int height, Text message, boolean checked)
      Mappings:
      Namespace Name Mixin selector
      official <init> Less;<init>(IIIILtl;Z)V
      intermediary <init> Lnet/minecraft/class_4286;<init>(IIIILnet/minecraft/class_2561;Z)V
      named <init> Lnet/minecraft/client/gui/widget/CheckboxWidget;<init>(IIIILnet/minecraft/text/Text;Z)V
    • CheckboxWidget

      public CheckboxWidget(int x, int y, int width, int height, Text message, boolean checked, boolean showMessage)
      Mappings:
      Namespace Name Mixin selector
      official <init> Less;<init>(IIIILtl;ZZ)V
      intermediary <init> Lnet/minecraft/class_4286;<init>(IIIILnet/minecraft/class_2561;ZZ)V
      named <init> Lnet/minecraft/client/gui/widget/CheckboxWidget;<init>(IIIILnet/minecraft/text/Text;ZZ)V
  • Method Details

    • onPress

      public void onPress()
      Specified by:
      onPress in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      official c Lesi;c()V
      intermediary method_25306 Lnet/minecraft/class_4264;method_25306()V
      named onPress Lnet/minecraft/client/gui/widget/PressableWidget;onPress()V
    • isChecked

      public boolean isChecked()
      Mappings:
      Namespace Name Mixin selector
      official a Less;a()Z
      intermediary method_20372 Lnet/minecraft/class_4286;method_20372()Z
      named isChecked Lnet/minecraft/client/gui/widget/CheckboxWidget;isChecked()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)
      Overrides:
      renderButton in class PressableWidget
      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