net.minecraft.client.gui.components

public class Checkbox

extends AbstractButton

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

fio
net.minecraft.client.gui.components.Checkbox
net.minecraft.class_4286
net.minecraft.client.gui.widget.CheckboxWidget
net.minecraft.src.C_3455_

Field summary

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

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, wz arg1, fhx 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)
m_339832_(int p_343945_, C_4996_ p_344442_, C_3429_ arg2)
private int
b(fhx arg0)
getAdjustedHeight(Font arg0)
method_61129(class_327 arg0)
calculateHeight(TextRenderer textRenderer)
m_338792_(C_3429_ arg0)
static int
b(wz arg0, fhx arg1)
getDefaultWidth(Component arg0, Font arg1)
method_61130(class_2561 arg0, class_327 arg1)
calculateWidth(Text text, TextRenderer textRenderer)
m_339463_(C_4996_ p_343910_, C_3429_ p_343985_)
public static Checkbox$Builder
a(wz arg0, fhx arg1)
builder(Component arg0, Font arg1)
method_54787(class_2561 arg0, class_327 arg1)
builder(Text text, TextRenderer textRenderer)
m_306644_(C_4996_ p_309446_, C_3429_ p_309998_)
public static int
a(fhx arg0)
getBoxSize(Font arg0)
method_54786(class_327 arg0)
getCheckboxSize(TextRenderer textRenderer)
m_305019_(C_3429_ p_310239_)
public void
b()
onPress()
method_25306()
onPress()
m_5691_()
public boolean
a()
selected()
method_20372()
isChecked()
m_93840_()
public void
a(fmi arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
m_168797_(C_141608_ arg0)
public void
b(fhz 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)
m_87963_(C_279497_ p_282925_, int p_282705_, int p_282612_, float arg3)