Package net.minecraft.client.gui.widget
Class CheckboxWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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 official eoe
intermediary net/minecraft/class_4286
named net/minecraft/client/gui/widget/CheckboxWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final boolean
private static final int
private static final Identifier
Fields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43046, field_43047, field_43048, field_43050, field_43100, field_43101
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionCheckboxWidget
(int x, int y, int width, int height, Text message, boolean checked) CheckboxWidget
(int x, int y, int width, int height, Text message, boolean checked, boolean showMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
onPress()
void
renderButton
(MatrixStack matrices, 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, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
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
-
TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Leoe;a:Ladd;
intermediary field_19231
Lnet/minecraft/class_4286;field_19231: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 b
Leoe;b:I
intermediary field_32181
Lnet/minecraft/class_4286;field_32181:I
named TEXT_COLOR
Lnet/minecraft/client/gui/widget/CheckboxWidget;TEXT_COLOR:I
-
checked
private boolean checked- Mappings:
Namespace Name Mixin selector official c
Leoe;c:Z
intermediary field_19230
Lnet/minecraft/class_4286;field_19230:Z
named checked
Lnet/minecraft/client/gui/widget/CheckboxWidget;checked:Z
-
showMessage
private final boolean showMessage- Mappings:
Namespace Name Mixin selector official d
Leoe;d:Z
intermediary field_24253
Lnet/minecraft/class_4286;field_24253:Z
named showMessage
Lnet/minecraft/client/gui/widget/CheckboxWidget;showMessage:Z
-
-
Constructor Details
-
CheckboxWidget
- Mappings:
Namespace Name Mixin selector official <init>
Leoe;<init>(IIIILtj;Z)V
intermediary <init>
Lnet/minecraft/class_4286;<init>(IIIILnet/minecraft/class_2561;Z)V
named <init>
Lnet/minecraft/client/gui/widget/CheckboxWidget;<init>(IIIILnet/minecraft/text/Text;Z)V
-
CheckboxWidget
public CheckboxWidget(int x, int y, int width, int height, Text message, boolean checked, boolean showMessage) - Mappings:
Namespace Name Mixin selector official <init>
Leoe;<init>(IIIILtj;ZZ)V
intermediary <init>
Lnet/minecraft/class_4286;<init>(IIIILnet/minecraft/class_2561;ZZ)V
named <init>
Lnet/minecraft/client/gui/widget/CheckboxWidget;<init>(IIIILnet/minecraft/text/Text;ZZ)V
-
-
Method Details
-
onPress
public void onPress()- Specified by:
onPress
in classPressableWidget
- Mappings:
Namespace Name Mixin selector official c
Lent;c()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
Leoe;a()Z
intermediary method_20372
Lnet/minecraft/class_4286;method_20372()Z
named isChecked
Lnet/minecraft/client/gui/widget/CheckboxWidget;isChecked()Z
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lenz;a(Lere;)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
-
renderButton
- Overrides:
renderButton
in classPressableWidget
- Mappings:
Namespace Name Mixin selector official b
Lenz;b(Lehe;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-