类 GameModeSelectionScreen.ButtonWidget
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.widget.AbstractButtonWidget
-
- net.minecraft.client.gui.screen.GameModeSelectionScreen.ButtonWidget
-
@Environment(CLIENT) public class GameModeSelectionScreen.ButtonWidget extends AbstractButtonWidget
- Mappings:
Namespace Name official eaa$bintermediary net/minecraft/class_5289$class_5291named net/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget
-
-
字段概要
字段 修饰符和类型 字段 说明 private GameModeSelectionScreen.GameModegameModeprivate booleanselected-
从类继承的字段 net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 ButtonWidget(GameModeSelectionScreen.GameMode gameMode, int x, int y)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private voiddrawBackground(MatrixStack matrices, TextureManager textureManager)private voiddrawSelectionBox(MatrixStack matrices, TextureManager textureManager)booleanisHovered()voidrenderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)voidsetSelected(boolean selected)-
从类继承的方法 net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidth
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
-
-
-
字段详细资料
-
gameMode
private final GameModeSelectionScreen.GameMode gameMode
- Mappings:
Namespace Name Mixin selector official bLeaa$b;b:Leaa$a;intermediary field_24586Lnet/minecraft/class_5289$class_5291;field_24586:Lnet/minecraft/class_5289$class_5290;named gameModeLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;gameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
selected
private boolean selected
- Mappings:
Namespace Name Mixin selector official cLeaa$b;c:Zintermediary field_24587Lnet/minecraft/class_5289$class_5291;field_24587:Znamed selectedLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;selected:Z
-
-
构造器详细资料
-
ButtonWidget
public ButtonWidget(GameModeSelectionScreen.GameMode gameMode, int x, int y)
- Mappings:
Namespace Name Mixin selector official <init>Leaa$b;<init>(Leaa;Leaa$a;II)Vintermediary <init>Lnet/minecraft/class_5289$class_5291;<init>(Lnet/minecraft/class_5289;Lnet/minecraft/class_5289$class_5290;II)Vnamed <init>Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;<init>(Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;II)V
-
-
方法详细资料
-
renderButton
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 覆盖:
renderButton在类中AbstractButtonWidget- Mappings:
Namespace Name Mixin selector official bLdvu;b(Ldpi;IIF)Vintermediary method_25359Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
isHovered
public boolean isHovered()
- 覆盖:
isHovered在类中AbstractButtonWidget- Mappings:
Namespace Name Mixin selector official gLdvu;g()Zintermediary method_25367Lnet/minecraft/class_339;method_25367()Znamed isHoveredLnet/minecraft/client/gui/widget/AbstractButtonWidget;isHovered()Z
-
setSelected
public void setSelected(boolean selected)
- Mappings:
Namespace Name Mixin selector official eLeaa$b;e(Z)Vintermediary method_28083Lnet/minecraft/class_5289$class_5291;method_28083(Z)Vnamed setSelectedLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;setSelected(Z)V
-
drawBackground
private void drawBackground(MatrixStack matrices, TextureManager textureManager)
- Mappings:
Namespace Name Mixin selector official aLeaa$b;a(Ldpi;Lewe;)Vintermediary method_28080Lnet/minecraft/class_5289$class_5291;method_28080(Lnet/minecraft/class_4587;Lnet/minecraft/class_1060;)Vnamed drawBackgroundLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawBackground(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/texture/TextureManager;)V
-
drawSelectionBox
private void drawSelectionBox(MatrixStack matrices, TextureManager textureManager)
- Mappings:
Namespace Name Mixin selector official bLeaa$b;b(Ldpi;Lewe;)Vintermediary method_28082Lnet/minecraft/class_5289$class_5291;method_28082(Lnet/minecraft/class_4587;Lnet/minecraft/class_1060;)Vnamed drawSelectionBoxLnet/minecraft/client/gui/screen/GameModeSelectionScreen$ButtonWidget;drawSelectionBox(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/texture/TextureManager;)V
-
-