net.minecraft.client.gui.components

public class Checkbox

extends AbstractButton

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

fow
net.minecraft.client.gui.components.Checkbox
net.minecraft.class_4286
net.minecraft.client.gui.widget.CheckboxWidget

Field summary

Modifier and TypeField
private static final ResourceLocation
a
CHECKBOX_SELECTED_HIGHLIGHTED_SPRITE
field_45348
SELECTED_HIGHLIGHTED_TEXTURE
private static final ResourceLocation
b
CHECKBOX_SELECTED_SPRITE
field_45349
SELECTED_TEXTURE
private static final ResourceLocation
c
CHECKBOX_HIGHLIGHTED_SPRITE
field_45350
HIGHLIGHTED_TEXTURE
private static final ResourceLocation
d
CHECKBOX_SPRITE
field_45351
TEXTURE
private static final int
f
TEXT_COLOR
field_32181
TEXT_COLOR
private static final int
m
SPACING
field_47105
field_47105
private static final int
n
BOX_PADDING
field_47106
field_47106
private boolean
o
selected
field_19230
checked
private final Checkbox$OnValueChange
p
onValueChange
field_47107
callback
private final MultiLineTextWidget
q
textWidget
field_52293
textWidget

Constructor summary

ModifierConstructor
(int x, int y, int maxWidth, Component message, Font textRenderer, boolean checked, Checkbox$OnValueChange callback)

Method summary

Modifier and TypeMethod
private int
a(int arg0, wp arg1, fod arg2)
getAdjustedWidth(int arg0, Component arg1, Font arg2)
method_61128(int arg0, class_2561 arg1, class_327 arg2)
calculateWidth(int max, Text text, TextRenderer textRenderer)
private int
b(fod arg0)
getAdjustedHeight(Font arg0)
method_61129(class_327 arg0)
calculateHeight(TextRenderer textRenderer)
static int
b(wp arg0, fod arg1)
getDefaultWidth(Component arg0, Font arg1)
method_61130(class_2561 arg0, class_327 arg1)
calculateWidth(Text text, TextRenderer textRenderer)
public static Checkbox$Builder
a(wp arg0, fod arg1)
builder(Component arg0, Font arg1)
method_54787(class_2561 arg0, class_327 arg1)
builder(Text text, TextRenderer textRenderer)
public static int
a(fod arg0)
getBoxSize(Font arg0)
method_54786(class_327 arg0)
getCheckboxSize(TextRenderer textRenderer)
public void
b()
onPress()
method_25306()
onPress()
public boolean
a()
selected()
method_20372()
isChecked()
public void
a(fsr arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
public void
b(fof arg0, int arg1, int arg2, float arg3)
renderWidget(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext arg0, int arg1, int arg2, float arg3)