Package net.minecraft.client.gui.widget
Class CheckboxWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.PressableWidget
net.minecraft.client.gui.widget.CheckboxWidget
- All Implemented Interfaces:
- Drawable,- Element,- Narratable,- Navigable,- Selectable,- Widget
- Mappings:
- Namespace - Name - named - net/minecraft/client/gui/widget/CheckboxWidget- intermediary - net/minecraft/class_4286- official - fow
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final CheckboxWidget.Callbackprivate booleanprivate static final intprivate static final intprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final intprivate static final Identifierprivate final MultilineTextWidgetFields inherited from class net.minecraft.client.gui.widget.PressableWidgetfield_43050Fields inherited from class net.minecraft.client.gui.widget.ClickableWidgetactive, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionCheckboxWidget(int x, int y, int maxWidth, Text message, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidstatic CheckboxWidget.Builderbuilder(Text text, TextRenderer textRenderer) private intcalculateHeight(TextRenderer textRenderer) private intcalculateWidth(int max, Text text, TextRenderer textRenderer) (package private) static intcalculateWidth(Text text, TextRenderer textRenderer) static intgetCheckboxSize(TextRenderer textRenderer) booleanvoidonPress()voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.PressableWidgetdrawMessage, keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getBorder, getFocusedPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.SelectablegetNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
Field Details- 
SELECTED_HIGHLIGHTED_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - SELECTED_HIGHLIGHTED_TEXTURE- Lnet/minecraft/client/gui/widget/CheckboxWidget;SELECTED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45348- Lnet/minecraft/class_4286;field_45348:Lnet/minecraft/class_2960;- official - a- Lfow;a:Lakv;
 
- 
SELECTED_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - SELECTED_TEXTURE- Lnet/minecraft/client/gui/widget/CheckboxWidget;SELECTED_TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45349- Lnet/minecraft/class_4286;field_45349:Lnet/minecraft/class_2960;- official - b- Lfow;b:Lakv;
 
- 
HIGHLIGHTED_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - HIGHLIGHTED_TEXTURE- Lnet/minecraft/client/gui/widget/CheckboxWidget;HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45350- Lnet/minecraft/class_4286;field_45350:Lnet/minecraft/class_2960;- official - c- Lfow;c:Lakv;
 
- 
TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - TEXTURE- Lnet/minecraft/client/gui/widget/CheckboxWidget;TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45351- Lnet/minecraft/class_4286;field_45351:Lnet/minecraft/class_2960;- official - d- Lfow;d:Lakv;
 
- 
TEXT_COLORprivate static final int TEXT_COLOR- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - TEXT_COLOR- Lnet/minecraft/client/gui/widget/CheckboxWidget;TEXT_COLOR:I- intermediary - field_32181- Lnet/minecraft/class_4286;field_32181:I- official - f- Lfow;f:I
 
- 
field_47105private static final int field_47105- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_47105- Lnet/minecraft/client/gui/widget/CheckboxWidget;field_47105:I- intermediary - field_47105- Lnet/minecraft/class_4286;field_47105:I- official - m- Lfow;m:I
 
- 
field_47106private static final int field_47106- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_47106- Lnet/minecraft/client/gui/widget/CheckboxWidget;field_47106:I- intermediary - field_47106- Lnet/minecraft/class_4286;field_47106:I- official - n- Lfow;n:I
 
- 
checkedprivate boolean checked- Mappings:
- Namespace - Name - Mixin selector - named - checked- Lnet/minecraft/client/gui/widget/CheckboxWidget;checked:Z- intermediary - field_19230- Lnet/minecraft/class_4286;field_19230:Z- official - o- Lfow;o:Z
 
- 
callback- Mappings:
- Namespace - Name - Mixin selector - named - callback- Lnet/minecraft/client/gui/widget/CheckboxWidget;callback:Lnet/minecraft/client/gui/widget/CheckboxWidget$Callback;- intermediary - field_47107- Lnet/minecraft/class_4286;field_47107:Lnet/minecraft/class_4286$class_8930;- official - p- Lfow;p:Lfow$b;
 
- 
textWidget- Mappings:
- Namespace - Name - Mixin selector - named - textWidget- Lnet/minecraft/client/gui/widget/CheckboxWidget;textWidget:Lnet/minecraft/client/gui/widget/MultilineTextWidget;- intermediary - field_52293- Lnet/minecraft/class_4286;field_52293:Lnet/minecraft/class_7940;- official - q- Lfow;q:Lfpo;
 
 
- 
- 
Constructor Details- 
CheckboxWidgetCheckboxWidget(int x, int y, int maxWidth, Text message, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/gui/widget/CheckboxWidget;<init>(IIILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;ZLnet/minecraft/client/gui/widget/CheckboxWidget$Callback;)V- intermediary - <init>- Lnet/minecraft/class_4286;<init>(IIILnet/minecraft/class_2561;Lnet/minecraft/class_327;ZLnet/minecraft/class_4286$class_8930;)V- official - <init>- Lfow;<init>(IIILwp;Lfod;ZLfow$b;)V
 
 
- 
- 
Method Details- 
calculateWidth- Mappings:
- Namespace - Name - Mixin selector - named - calculateWidth- Lnet/minecraft/client/gui/widget/CheckboxWidget;calculateWidth(ILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)I- intermediary - method_61128- Lnet/minecraft/class_4286;method_61128(ILnet/minecraft/class_2561;Lnet/minecraft/class_327;)I- official - a- Lfow;a(ILwp;Lfod;)I
 
- 
calculateHeight- Mappings:
- Namespace - Name - Mixin selector - named - calculateHeight- Lnet/minecraft/client/gui/widget/CheckboxWidget;calculateHeight(Lnet/minecraft/client/font/TextRenderer;)I- intermediary - method_61129- Lnet/minecraft/class_4286;method_61129(Lnet/minecraft/class_327;)I- official - b- Lfow;b(Lfod;)I
 
- 
calculateWidth- Mappings:
- Namespace - Name - Mixin selector - named - calculateWidth- Lnet/minecraft/client/gui/widget/CheckboxWidget;calculateWidth(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)I- intermediary - method_61130- Lnet/minecraft/class_4286;method_61130(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)I- official - b- Lfow;b(Lwp;Lfod;)I
 
- 
builder- Mappings:
- Namespace - Name - Mixin selector - 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;- intermediary - method_54787- Lnet/minecraft/class_4286;method_54787(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)Lnet/minecraft/class_4286$class_8929;- official - a- Lfow;a(Lwp;Lfod;)Lfow$a;
 
- 
getCheckboxSize- Mappings:
- Namespace - Name - Mixin selector - named - getCheckboxSize- Lnet/minecraft/client/gui/widget/CheckboxWidget;getCheckboxSize(Lnet/minecraft/client/font/TextRenderer;)I- intermediary - method_54786- Lnet/minecraft/class_4286;method_54786(Lnet/minecraft/class_327;)I- official - a- Lfow;a(Lfod;)I
 
- 
onPresspublic void onPress()- Specified by:
- onPressin class- PressableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - onPress- Lnet/minecraft/client/gui/widget/PressableWidget;onPress()V- intermediary - method_25306- Lnet/minecraft/class_4264;method_25306()V- official - b- Lfoj;b()V
 
- 
isCheckedpublic boolean isChecked()- Mappings:
- Namespace - Name - Mixin selector - named - isChecked- Lnet/minecraft/client/gui/widget/CheckboxWidget;isChecked()Z- intermediary - method_20372- Lnet/minecraft/class_4286;method_20372()Z- official - a- Lfow;a()Z
 
- 
appendClickableNarrations- Specified by:
- appendClickableNarrationsin 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- Lfos;a(Lfsr;)V
 
- 
renderWidget- Overrides:
- renderWidgetin class- PressableWidget
- 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- Lfos;b(Lfof;IIF)V
 
 
-