Package net.minecraft.client.gui.widget
Class CheckboxWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.AbstractPressableButtonWidget
net.minecraft.client.gui.widget.CheckboxWidget
@Environment(CLIENT) public class CheckboxWidget extends AbstractPressableButtonWidget
- Mappings:
Namespace Name official drw
intermediary net/minecraft/class_4286
named net/minecraft/client/gui/widget/CheckboxWidget
-
Field Summary
Fields Modifier and Type Field Description private boolean
checked
private boolean
field_24253
private static Identifier
TEXTURE
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description CheckboxWidget(int x, int y, int width, int height, Text text, boolean checked)
CheckboxWidget(int int2, int int3, int int4, int int5, Text text, boolean bool, boolean bool2)
-
Method Summary
Modifier and Type Method Description boolean
isChecked()
void
onPress()
void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
Methods inherited from class net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Ldrw;a:Lwb;
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;
-
checked
private boolean checked- Mappings:
Namespace Name Mixin selector official b
Ldrw;b:Z
intermediary field_19230
Lnet/minecraft/class_4286;field_19230:Z
named checked
Lnet/minecraft/client/gui/widget/CheckboxWidget;checked:Z
-
field_24253
private final boolean field_24253- Mappings:
Namespace Name Mixin selector official c
Ldrw;c:Z
intermediary field_24253
Lnet/minecraft/class_4286;field_24253:Z
named field_24253
Lnet/minecraft/client/gui/widget/CheckboxWidget;field_24253:Z
-
-
Constructor Details
-
CheckboxWidget
- Mappings:
Namespace Name Mixin selector official <init>
Ldrw;<init>(IIIILoi;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 int2, int int3, int int4, int int5, Text text, boolean bool, boolean bool2)
-
-
Method Details
-
onPress
public void onPress()- Specified by:
onPress
in classAbstractPressableButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldro;b()V
intermediary method_25306
Lnet/minecraft/class_4264;method_25306()V
named onPress
Lnet/minecraft/client/gui/widget/AbstractPressableButtonWidget;onPress()V
-
isChecked
public boolean isChecked()- Mappings:
Namespace Name Mixin selector official a
Ldrw;a()Z
intermediary method_20372
Lnet/minecraft/class_4286;method_20372()Z
named isChecked
Lnet/minecraft/client/gui/widget/CheckboxWidget;isChecked()Z
-
renderButton
- Overrides:
renderButton
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-