Package net.minecraft.command.argument
Class GameModeArgumentType
java.lang.Object
net.minecraft.command.argument.GameModeArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<GameMode>
public class GameModeArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<GameMode>
- Mappings:
Namespace Name named net/minecraft/command/argument/GameModeArgumentType
intermediary net/minecraft/class_7918
official fh
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final GameMode[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GameModeArgumentType
gameMode()
static GameMode
getGameMode
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/GameModeArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_41088
Lnet/minecraft/class_7918;field_41088:Ljava/util/Collection;
official a
Lfh;a:Ljava/util/Collection;
-
VALUES
- Mappings:
Namespace Name Mixin selector named VALUES
Lnet/minecraft/command/argument/GameModeArgumentType;VALUES:[Lnet/minecraft/world/GameMode;
intermediary field_41089
Lnet/minecraft/class_7918;field_41089:[Lnet/minecraft/class_1934;
official b
Lfh;b:[Ldct;
-
INVALID_GAME_MODE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_GAME_MODE_EXCEPTION- Mappings:
Namespace Name Mixin selector named INVALID_GAME_MODE_EXCEPTION
Lnet/minecraft/command/argument/GameModeArgumentType;INVALID_GAME_MODE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_41090
Lnet/minecraft/class_7918;field_41090:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official c
Lfh;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
GameModeArgumentType
public GameModeArgumentType()
-
-
Method Details
-
parse
public GameMode parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<GameMode>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/GameModeArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/world/GameMode;
intermediary method_47384
Lnet/minecraft/class_7918;method_47384(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_1934;
official a
Lfh;a(Lcom/mojang/brigadier/StringReader;)Ldct;
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<GameMode>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/GameModeArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_7918;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
official listSuggestions
Lfh;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<GameMode>
-
gameMode
- Mappings:
Namespace Name Mixin selector named gameMode
Lnet/minecraft/command/argument/GameModeArgumentType;gameMode()Lnet/minecraft/command/argument/GameModeArgumentType;
intermediary method_47383
Lnet/minecraft/class_7918;method_47383()Lnet/minecraft/class_7918;
official a
Lfh;a()Lfh;
-
getGameMode
public static GameMode getGameMode(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getGameMode
Lnet/minecraft/command/argument/GameModeArgumentType;getGameMode(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/world/GameMode;
intermediary method_47385
Lnet/minecraft/class_7918;method_47385(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1934;
official a
Lfh;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldct;
-