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/CheckboxWidgetintermediary net/minecraft/class_4286official fhh
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceNested 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 intprivate static final IdentifierFields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43050Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionCheckboxWidget(int x, int y, Text message, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic CheckboxWidget.Builderbuilder(Text text, TextRenderer textRenderer) static intgetSize(TextRenderer textRenderer) booleanvoidonPress()voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawMessage, keyPressed, onClickMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, 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, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, 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, getFocusedPath, keyReleased, mouseMoved, mouseScrolledMethods 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 aLfhh;a:Lalf;
-
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 bLfhh;b:Lalf;
-
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 cLfhh;c:Lalf;
-
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 dLfhh;d:Lalf;
-
TEXT_COLOR
private static final int TEXT_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector named TEXT_COLORLnet/minecraft/client/gui/widget/CheckboxWidget;TEXT_COLOR:Iintermediary field_32181Lnet/minecraft/class_4286;field_32181:Iofficial fLfhh;f:I
-
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 mLfhh;m: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 nLfhh;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 oLfhh;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 pLfhh;p:Lfhh$b;
-
-
Constructor Details
-
CheckboxWidget
CheckboxWidget(int x, int y, Text message, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback) - Mappings:
Namespace Name Mixin selector 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;)Vintermediary <init>Lnet/minecraft/class_4286;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;ZLnet/minecraft/class_4286$class_8930;)Vofficial <init>Lfhh;<init>(IILxp;Lfgq;ZLfhh$b;)V
-
-
Method Details
-
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 aLfhh;a(Lxp;Lfgq;)Lfhh$a;
-
getSize
- Mappings:
Namespace Name Mixin selector named getSizeLnet/minecraft/client/gui/widget/CheckboxWidget;getSize(Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_54786Lnet/minecraft/class_4286;method_54786(Lnet/minecraft/class_327;)Iofficial aLfhh;a(Lfgq;)I
-
onPress
public void onPress()- Specified by:
onPressin classPressableWidget- Mappings:
Namespace Name Mixin selector named onPressLnet/minecraft/client/gui/widget/PressableWidget;onPress()Vintermediary method_25306Lnet/minecraft/class_4264;method_25306()Vofficial bLfgw;b()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 aLfhh;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 aLfhd;a(Lflb;)V
-
renderWidget
- Overrides:
renderWidgetin classPressableWidget- Mappings:
Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLfhd;b(Lfgs;IIF)V
-