Package net.minecraft.client.gui.screen
Class GamemodeSelectionScreen.SelectorWidget
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.widget.Widget
net.minecraft.client.gui.screen.GamemodeSelectionScreen.SelectorWidget
- All Implemented Interfaces:
IGuiEventListener,IRenderable
- Enclosing class:
- GamemodeSelectionScreen
-
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.widget.Widget
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
ConstructorsConstructorDescriptionSelectorWidget(GamemodeSelectionScreen.Mode p_i232286_2_, int p_i232286_3_, int p_i232286_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawSelection(MatrixStack p_238740_1_, TextureManager p_238740_2_) private voiddrawSlot(MatrixStack p_238738_1_, TextureManager p_238738_2_) booleanvoidrenderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_) voidsetSelected(boolean p_238741_1_) Methods inherited from class net.minecraft.client.gui.widget.Widget
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
icon
-
isSelected
private boolean isSelected
-
-
Constructor Details
-
SelectorWidget
public SelectorWidget(GamemodeSelectionScreen.Mode p_i232286_2_, int p_i232286_3_, int p_i232286_4_)
-
-
Method Details
-
renderButton
public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_) - Overrides:
renderButtonin classWidget
-
isHovered
public boolean isHovered() -
setSelected
public void setSelected(boolean p_238741_1_) -
drawSlot
-
drawSelection
-