Package net.minecraft.client.gui.widget
Class CheckboxWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ClickableWidget.InactivityIndicatingWidget
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/CheckboxWidgetintermediary net/minecraft/class_4286official ghn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceNested classes/interfaces inherited from class net.minecraft.client.gui.widget.ClickableWidget
ClickableWidget.InactivityIndicatingWidgetNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CheckboxWidget.Callbackprivate booleanprivate static final intprivate static final intprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate final MultilineTextWidgetFields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43050 -
Constructor Summary
ConstructorsConstructorDescriptionCheckboxWidget(int x, int y, int maxWidth, Text text, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback) -
Method Summary
Modifier 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) voiddrawIcon(DrawContext context, int mouseX, int mouseY, float deltaTicks) static intgetCheckboxSize(TextRenderer textRenderer) booleanintmethod_76257(int int2, TextRenderer textRenderer) voidonPress(AbstractInput input) Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawButton, drawLabel, keyPressed, onClick, renderWidgetMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget.InactivityIndicatingWidget
getMessage, makeInactive, setMessageMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawTextWithMargin, forEachChild, getAlpha, getBottom, getHeight, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isInteractable, isMouseOver, isSelected, isValidClickButton, method_76256, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getBorder, getFocusedPath, isClickable, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
SELECTED_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named SELECTED_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/widget/CheckboxWidget;SELECTED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45348Lnet/minecraft/class_4286;field_45348:Lnet/minecraft/class_2960;official aLghn;a:Lamu;
-
SELECTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named SELECTED_TEXTURELnet/minecraft/client/gui/widget/CheckboxWidget;SELECTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45349Lnet/minecraft/class_4286;field_45349:Lnet/minecraft/class_2960;official bLghn;b:Lamu;
-
HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/widget/CheckboxWidget;HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45350Lnet/minecraft/class_4286;field_45350:Lnet/minecraft/class_2960;official cLghn;c:Lamu;
-
TEXTURE
- Mappings:
Namespace Name Mixin selector named TEXTURELnet/minecraft/client/gui/widget/CheckboxWidget;TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45351Lnet/minecraft/class_4286;field_45351:Lnet/minecraft/class_2960;official dLghn;d:Lamu;
-
field_47105
private static final int field_47105- See Also:
- Mappings:
Namespace Name Mixin selector named field_47105Lnet/minecraft/client/gui/widget/CheckboxWidget;field_47105:Iintermediary field_47105Lnet/minecraft/class_4286;field_47105:Iofficial fLghn;f:I
-
field_47106
private static final int field_47106- See Also:
- Mappings:
Namespace Name Mixin selector named field_47106Lnet/minecraft/client/gui/widget/CheckboxWidget;field_47106:Iintermediary field_47106Lnet/minecraft/class_4286;field_47106:Iofficial nLghn;n:I
-
checked
private boolean checked- Mappings:
Namespace Name Mixin selector named checkedLnet/minecraft/client/gui/widget/CheckboxWidget;checked:Zintermediary field_19230Lnet/minecraft/class_4286;field_19230:Zofficial oLghn;o:Z
-
callback
- Mappings:
Namespace Name Mixin selector named callbackLnet/minecraft/client/gui/widget/CheckboxWidget;callback:Lnet/minecraft/client/gui/widget/CheckboxWidget$Callback;intermediary field_47107Lnet/minecraft/class_4286;field_47107:Lnet/minecraft/class_4286$class_8930;official pLghn;p:Lghn$b;
-
textWidget
- Mappings:
Namespace Name Mixin selector named textWidgetLnet/minecraft/client/gui/widget/CheckboxWidget;textWidget:Lnet/minecraft/client/gui/widget/MultilineTextWidget;intermediary field_52293Lnet/minecraft/class_4286;field_52293:Lnet/minecraft/class_7940;official qLghn;q:Lgig;
-
-
Constructor Details
-
CheckboxWidget
CheckboxWidget(int x, int y, int maxWidth, Text text, 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;)Vintermediary <init>Lnet/minecraft/class_4286;<init>(IIILnet/minecraft/class_2561;Lnet/minecraft/class_327;ZLnet/minecraft/class_4286$class_8930;)Vofficial <init>Lghn;<init>(IIILyi;Lggv;ZLghn$b;)V
-
-
Method Details
-
method_76257
- Mappings:
Namespace Name Mixin selector named method_76257Lnet/minecraft/client/gui/widget/CheckboxWidget;method_76257(ILnet/minecraft/client/font/TextRenderer;)Iintermediary method_76257Lnet/minecraft/class_4286;method_76257(ILnet/minecraft/class_327;)Iofficial aLghn;a(ILggv;)I
-
calculateWidth
- Mappings:
Namespace Name Mixin selector named calculateWidthLnet/minecraft/client/gui/widget/CheckboxWidget;calculateWidth(ILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_61128Lnet/minecraft/class_4286;method_61128(ILnet/minecraft/class_2561;Lnet/minecraft/class_327;)Iofficial aLghn;a(ILyi;Lggv;)I
-
calculateHeight
- Mappings:
Namespace Name Mixin selector named calculateHeightLnet/minecraft/client/gui/widget/CheckboxWidget;calculateHeight(Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_61129Lnet/minecraft/class_4286;method_61129(Lnet/minecraft/class_327;)Iofficial bLghn;b(Lggv;)I
-
calculateWidth
- Mappings:
Namespace Name Mixin selector named calculateWidthLnet/minecraft/client/gui/widget/CheckboxWidget;calculateWidth(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_61130Lnet/minecraft/class_4286;method_61130(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)Iofficial bLghn;b(Lyi;Lggv;)I
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/client/gui/widget/CheckboxWidget;builder(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)Lnet/minecraft/client/gui/widget/CheckboxWidget$Builder;intermediary method_54787Lnet/minecraft/class_4286;method_54787(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)Lnet/minecraft/class_4286$class_8929;official aLghn;a(Lyi;Lggv;)Lghn$a;
-
getCheckboxSize
- Mappings:
Namespace Name Mixin selector named getCheckboxSizeLnet/minecraft/client/gui/widget/CheckboxWidget;getCheckboxSize(Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_54786Lnet/minecraft/class_4286;method_54786(Lnet/minecraft/class_327;)Iofficial aLghn;a(Lggv;)I
-
onPress
- Specified by:
onPressin classPressableWidget- Mappings:
Namespace Name Mixin selector named onPressLnet/minecraft/client/gui/widget/PressableWidget;onPress(Lnet/minecraft/client/input/AbstractInput;)Vintermediary method_25306Lnet/minecraft/class_4264;method_25306(Lnet/minecraft/class_11907;)Vofficial aLghb;a(Lgxg;)V
-
isChecked
public boolean isChecked()- Mappings:
Namespace Name Mixin selector named isCheckedLnet/minecraft/client/gui/widget/CheckboxWidget;isChecked()Zintermediary method_20372Lnet/minecraft/class_4286;method_20372()Zofficial aLghn;a()Z
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector named appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLghj;a(Lgnl;)V
-
drawIcon
- Specified by:
drawIconin classPressableWidget- Mappings:
Namespace Name Mixin selector named drawIconLnet/minecraft/client/gui/widget/PressableWidget;drawIcon(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_75752Lnet/minecraft/class_4264;method_75752(Lnet/minecraft/class_332;IIF)Vofficial bLghb;b(Lggy;IIF)V
-