Class GameModeSwitcherScreen.GameModeSlot
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.screens.debug.GameModeSwitcherScreen.GameModeSlot
- All Implemented Interfaces:
GuiEventListener,Widget,NarratableEntry,NarrationSupplier
- Enclosing class:
- GameModeSwitcherScreen
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final GameModeSwitcherScreen.GameModeIconprivate booleanFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionGameModeSlot(GameModeSwitcherScreen.GameModeIcon p_97627_, int p_97628_, int p_97629_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawSelection(PoseStack p_97641_, TextureManager p_97642_) private voiddrawSlot(PoseStack p_97631_, TextureManager p_97632_) booleanvoidrenderButton(PoseStack p_97636_, int p_97637_, int p_97638_, float p_97639_) voidsetSelected(boolean p_97644_) voidupdateNarration(NarrationElementOutput p_169594_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
changeFocus, clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessageMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
icon
-
isSelected
private boolean isSelected
-
-
Constructor Details
-
GameModeSlot
-
-
Method Details
-
renderButton
- Overrides:
renderButtonin classAbstractWidget
-
updateNarration
-
isHoveredOrFocused
public boolean isHoveredOrFocused()- Overrides:
isHoveredOrFocusedin classAbstractWidget
-
setSelected
public void setSelected(boolean p_97644_) -
drawSlot
-
drawSelection
-