Class CheckboxWidget

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

@Environment(CLIENT) public class CheckboxWidget extends PressableWidget
Mappings:
Namespace Name
official exi
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 Lexi;a:Lahg;
      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 Lexi;b:Lahg;
      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 Lexi;c:Lahg;
      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 Lexi;d:Lahg;
      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 f Lexi;f:I
      intermediary field_32181 Lnet/minecraft/class_4286;field_32181:I
      named TEXT_COLOR Lnet/minecraft/client/gui/widget/CheckboxWidget;TEXT_COLOR:I
    • field_47105

      private static final int field_47105
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lexi;m:I
      intermediary field_47105 Lnet/minecraft/class_4286;field_47105:I
      named field_47105 Lnet/minecraft/client/gui/widget/CheckboxWidget;field_47105:I
    • field_47106

      private static final int field_47106
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lexi;n:I
      intermediary field_47106 Lnet/minecraft/class_4286;field_47106:I
      named field_47106 Lnet/minecraft/client/gui/widget/CheckboxWidget;field_47106:I
    • checked

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

      private final CheckboxWidget.Callback callback
      Mappings:
      Namespace Name Mixin selector
      official p Lexi;p:Lexi$b;
      intermediary field_47107 Lnet/minecraft/class_4286;field_47107:Lnet/minecraft/class_4286$class_8930;
      named callback Lnet/minecraft/client/gui/widget/CheckboxWidget;callback:Lnet/minecraft/client/gui/widget/CheckboxWidget$Callback;
  • Constructor Details

    • CheckboxWidget

      CheckboxWidget(int x, int y, Text message, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lexi;<init>(IILvf;Lews;ZLexi$b;)V
      intermediary <init> Lnet/minecraft/class_4286;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;ZLnet/minecraft/class_4286$class_8930;)V
      named <init> Lnet/minecraft/client/gui/widget/CheckboxWidget;<init>(IILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;ZLnet/minecraft/client/gui/widget/CheckboxWidget$Callback;)V
  • Method Details

    • builder

      public static CheckboxWidget.Builder builder(Text text, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      official a Lexi;a(Lvf;Lews;)Lexi$a;
      intermediary method_54787 Lnet/minecraft/class_4286;method_54787(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)Lnet/minecraft/class_4286$class_8929;
      named builder Lnet/minecraft/client/gui/widget/CheckboxWidget;builder(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)Lnet/minecraft/client/gui/widget/CheckboxWidget$Builder;
    • getSize

      private static int getSize(TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      official a Lexi;a(Lews;)I
      intermediary method_54786 Lnet/minecraft/class_4286;method_54786(Lnet/minecraft/class_327;)I
      named getSize Lnet/minecraft/client/gui/widget/CheckboxWidget;getSize(Lnet/minecraft/client/font/TextRenderer;)I
    • onPress

      public void onPress()
      Specified by:
      onPress in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lewx;b()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 Lexi;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 Lexe;a(Lfaz;)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
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      Overrides:
      renderWidget in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lexe;b(Lewu;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      named renderWidget Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V