Class GameModeSwitcherScreen.GameModeSlot
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.screens.debug.GameModeSwitcherScreen.GameModeSlot
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
- Enclosing class:
- GameModeSwitcherScreen
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescription(package private) final GameModeSwitcherScreen.GameModeIcon
private boolean
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
ConstructorDescriptionGameModeSlot
(GameModeSwitcherScreen.GameModeIcon p_97627_, int p_97628_, int p_97629_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
drawSelection
(GuiGraphics p_281820_) private void
drawSlot
(GuiGraphics p_281786_) boolean
void
renderWidget
(GuiGraphics p_281380_, int p_283094_, int p_283558_, float p_282631_) void
setSelected
(boolean p_97644_) void
updateWidgetNarration
(NarrationElementOutput p_259120_) 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, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, 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, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
icon
-
isSelected
private boolean isSelected
-
-
Constructor Details
-
GameModeSlot
-
-
Method Details
-
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-
isHoveredOrFocused
public boolean isHoveredOrFocused()- Overrides:
isHoveredOrFocused
in classAbstractWidget
-
setSelected
public void setSelected(boolean p_97644_) -
drawSlot
-
drawSelection
-