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 fhi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CheckboxWidget.Callback
private boolean
private static final int
private static final int
private static final Identifier
private static final Identifier
private static final Identifier
private static final int
private static final Identifier
Fields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43050
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionCheckboxWidget
(int x, int y, Text message, TextRenderer textRenderer, boolean checked, CheckboxWidget.Callback callback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static CheckboxWidget.Builder
builder
(Text text, TextRenderer textRenderer) static int
getSize
(TextRenderer textRenderer) boolean
void
onPress()
void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawMessage, keyPressed, onClick
Methods 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, setY
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
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
Lfhi;a:Lalf;
-
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
Lfhi;b:Lalf;
-
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
Lfhi;c:Lalf;
-
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
Lfhi;d:Lalf;
-
TEXT_COLOR
private 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
Lfhi;f:I
-
field_47105
private 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
Lfhi;m:I
-
field_47106
private 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
Lfhi;n:I
-
checked
private 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
Lfhi;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
Lfhi;p:Lfhi$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;)V
intermediary <init>
Lnet/minecraft/class_4286;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;ZLnet/minecraft/class_4286$class_8930;)V
official <init>
Lfhi;<init>(IILxp;Lfgr;ZLfhi$b;)V
-
-
Method Details
-
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
Lfhi;a(Lxp;Lfgr;)Lfhi$a;
-
getSize
- Mappings:
Namespace Name Mixin selector named getSize
Lnet/minecraft/client/gui/widget/CheckboxWidget;getSize(Lnet/minecraft/client/font/TextRenderer;)I
intermediary method_54786
Lnet/minecraft/class_4286;method_54786(Lnet/minecraft/class_327;)I
official a
Lfhi;a(Lfgr;)I
-
onPress
public void onPress()- Specified by:
onPress
in classPressableWidget
- 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
Lfgx;b()V
-
isChecked
public 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
Lfhi;a()Z
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- 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
Lfhe;a(Lflc;)V
-
renderWidget
- Overrides:
renderWidget
in classPressableWidget
- 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
Lfhe;b(Lfgt;IIF)V
-