Class Checkbox
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
net.minecraft.client.gui.components.Checkbox
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private boolean
private final boolean
private static final int
Fields inherited from class net.minecraft.client.gui.components.AbstractButton
SPRITES, TEXT_MARGIN
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onPress()
void
renderWidget
(GuiGraphics p_283124_, int p_282925_, int p_282705_, float p_282612_) boolean
selected()
void
updateWidgetNarration
(NarrationElementOutput p_260253_) Methods inherited from class net.minecraft.client.gui.components.AbstractButton
keyPressed, onClick, renderString
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
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.components.events.GuiEventListener
charTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
CHECKBOX_SELECTED_HIGHLIGHTED_SPRITE
-
CHECKBOX_SELECTED_SPRITE
-
CHECKBOX_HIGHLIGHTED_SPRITE
-
CHECKBOX_SPRITE
-
TEXT_COLOR
private static final int TEXT_COLOR- See Also:
-
selected
private boolean selected -
showLabel
private final boolean showLabel
-
-
Constructor Details
-
Method Details
-
onPress
public void onPress()- Specified by:
onPress
in classAbstractButton
-
selected
public boolean selected() -
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-
renderWidget
- Overrides:
renderWidget
in classAbstractButton
-