枚举 GameModeSelectionScreen.GameMode
- java.lang.Object
-
- java.lang.Enum<GameModeSelectionScreen.GameMode>
-
- net.minecraft.client.gui.screen.GameModeSelectionScreen.GameMode
-
- 所有已实现的接口:
Serializable,Comparable<GameModeSelectionScreen.GameMode>
@Environment(CLIENT) static enum GameModeSelectionScreen.GameMode extends Enum<GameModeSelectionScreen.GameMode>
- Mappings:
Namespace Name official eaa$aintermediary net/minecraft/class_5289$class_5290named net/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode
-
-
字段概要
字段 修饰符和类型 字段 说明 (专用程序包) Stringcommandprotected static intfield_32316private static intfield_32317(专用程序包) ItemStackicon(专用程序包) Texttextprotected static GameModeSelectionScreen.GameMode[]VALUES
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private StringgetCommand()private TextgetText()private Optional<GameModeSelectionScreen.GameMode>next()private static Optional<GameModeSelectionScreen.GameMode>of(GameMode gameMode)private voidrenderIcon(ItemRenderer itemRenderer, int x, int y)static GameModeSelectionScreen.GameModevalueOf(String name)返回带有指定名称的该类型的枚举常量。static GameModeSelectionScreen.GameMode[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
CREATIVE
public static final GameModeSelectionScreen.GameMode CREATIVE
- Mappings:
Namespace Name Mixin selector official aLeaa$a;a:Leaa$a;intermediary field_24576Lnet/minecraft/class_5289$class_5290;field_24576:Lnet/minecraft/class_5289$class_5290;named CREATIVELnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;CREATIVE:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
SURVIVAL
public static final GameModeSelectionScreen.GameMode SURVIVAL
- Mappings:
Namespace Name Mixin selector official bLeaa$a;b:Leaa$a;intermediary field_24577Lnet/minecraft/class_5289$class_5290;field_24577:Lnet/minecraft/class_5289$class_5290;named SURVIVALLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;SURVIVAL:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
ADVENTURE
public static final GameModeSelectionScreen.GameMode ADVENTURE
- Mappings:
Namespace Name Mixin selector official cLeaa$a;c:Leaa$a;intermediary field_24578Lnet/minecraft/class_5289$class_5290;field_24578:Lnet/minecraft/class_5289$class_5290;named ADVENTURELnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;ADVENTURE:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
SPECTATOR
public static final GameModeSelectionScreen.GameMode SPECTATOR
- Mappings:
Namespace Name Mixin selector official dLeaa$a;d:Leaa$a;intermediary field_24579Lnet/minecraft/class_5289$class_5290;field_24579:Lnet/minecraft/class_5289$class_5290;named SPECTATORLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;SPECTATOR:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
-
字段详细资料
-
VALUES
protected static final GameModeSelectionScreen.GameMode[] VALUES
- Mappings:
Namespace Name Mixin selector official eLeaa$a;e:[Leaa$a;intermediary field_24580Lnet/minecraft/class_5289$class_5290;field_24580:[Lnet/minecraft/class_5289$class_5290;named VALUESLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;VALUES:[Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
field_32317
private static final int field_32317
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official jLeaa$a;j:Iintermediary field_32317Lnet/minecraft/class_5289$class_5290;field_32317:Inamed field_32317Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;field_32317:I
-
field_32316
protected static final int field_32316
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLeaa$a;f:Iintermediary field_32316Lnet/minecraft/class_5289$class_5290;field_32316:Inamed field_32316Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;field_32316:I
-
text
final Text text
- Mappings:
Namespace Name Mixin selector official gLeaa$a;g:Lon;intermediary field_24581Lnet/minecraft/class_5289$class_5290;field_24581:Lnet/minecraft/class_2561;named textLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;text:Lnet/minecraft/text/Text;
-
command
final String command
- Mappings:
Namespace Name Mixin selector official hLeaa$a;h:Ljava/lang/String;intermediary field_24582Lnet/minecraft/class_5289$class_5290;field_24582:Ljava/lang/String;named commandLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;command:Ljava/lang/String;
-
icon
final ItemStack icon
- Mappings:
Namespace Name Mixin selector official iLeaa$a;i:Lbpr;intermediary field_24583Lnet/minecraft/class_5289$class_5290;field_24583:Lnet/minecraft/class_1799;named iconLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;icon:Lnet/minecraft/item/ItemStack;
-
-
构造器详细资料
-
GameMode
private GameMode(Text text, String command, ItemStack icon)
- Mappings:
Namespace Name Mixin selector official <init>Leaa$a;<init>(Ljava/lang/String;ILon;Ljava/lang/String;Lbpr;)Vintermediary <init>Lnet/minecraft/class_5289$class_5290;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;Ljava/lang/String;Lnet/minecraft/class_1799;)Vnamed <init>Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;<init>(Ljava/lang/String;ILnet/minecraft/text/Text;Ljava/lang/String;Lnet/minecraft/item/ItemStack;)V
-
-
方法详细资料
-
values
public static GameModeSelectionScreen.GameMode[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (GameModeSelectionScreen.GameMode c : GameModeSelectionScreen.GameMode.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static GameModeSelectionScreen.GameMode valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
renderIcon
private void renderIcon(ItemRenderer itemRenderer, int x, int y)
- Mappings:
Namespace Name Mixin selector official aLeaa$a;a(Lero;II)Vintermediary method_28074Lnet/minecraft/class_5289$class_5290;method_28074(Lnet/minecraft/class_918;II)Vnamed renderIconLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;renderIcon(Lnet/minecraft/client/render/item/ItemRenderer;II)V
-
getText
private Text getText()
- Mappings:
Namespace Name Mixin selector official aLeaa$a;a()Lon;intermediary method_28070Lnet/minecraft/class_5289$class_5290;method_28070()Lnet/minecraft/class_2561;named getTextLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;getText()Lnet/minecraft/text/Text;
-
getCommand
private String getCommand()
- Mappings:
Namespace Name Mixin selector official bLeaa$a;b()Ljava/lang/String;intermediary method_28075Lnet/minecraft/class_5289$class_5290;method_28075()Ljava/lang/String;named getCommandLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;getCommand()Ljava/lang/String;
-
next
private Optional<GameModeSelectionScreen.GameMode> next()
- Mappings:
Namespace Name Mixin selector official cLeaa$a;c()Ljava/util/Optional;intermediary method_28078Lnet/minecraft/class_5289$class_5290;method_28078()Ljava/util/Optional;named nextLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;next()Ljava/util/Optional;
-
of
private static Optional<GameModeSelectionScreen.GameMode> of(GameMode gameMode)
- Mappings:
Namespace Name Mixin selector official bLeaa$a;b(Lbvo;)Ljava/util/Optional;intermediary method_28076Lnet/minecraft/class_5289$class_5290;method_28076(Lnet/minecraft/class_1934;)Ljava/util/Optional;named ofLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;of(Lnet/minecraft/world/GameMode;)Ljava/util/Optional;
-
-