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/GameModeArgumentTypeintermediary net/minecraft/class_7918official fh
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final GameMode[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GameModeArgumentTypegameMode()static GameModegetGameMode(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)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLESLnet/minecraft/command/argument/GameModeArgumentType;EXAMPLES:Ljava/util/Collection;intermediary field_41088Lnet/minecraft/class_7918;field_41088:Ljava/util/Collection;official aLfh;a:Ljava/util/Collection;
-
VALUES
- Mappings:
Namespace Name Mixin selector named VALUESLnet/minecraft/command/argument/GameModeArgumentType;VALUES:[Lnet/minecraft/world/GameMode;intermediary field_41089Lnet/minecraft/class_7918;field_41089:[Lnet/minecraft/class_1934;official bLfh;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_EXCEPTIONLnet/minecraft/command/argument/GameModeArgumentType;INVALID_GAME_MODE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_41090Lnet/minecraft/class_7918;field_41090:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;official cLfh;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:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<GameMode>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/GameModeArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/world/GameMode;intermediary method_47384Lnet/minecraft/class_7918;method_47384(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_1934;official aLfh;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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<GameMode>- Mappings:
Namespace Name Mixin selector named listSuggestionsLnet/minecraft/command/argument/GameModeArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_7918;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;official listSuggestionsLfh;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<GameMode>
-
gameMode
- Mappings:
Namespace Name Mixin selector named gameModeLnet/minecraft/command/argument/GameModeArgumentType;gameMode()Lnet/minecraft/command/argument/GameModeArgumentType;intermediary method_47383Lnet/minecraft/class_7918;method_47383()Lnet/minecraft/class_7918;official aLfh;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 getGameModeLnet/minecraft/command/argument/GameModeArgumentType;getGameMode(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/world/GameMode;intermediary method_47385Lnet/minecraft/class_7918;method_47385(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1934;official aLfh;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldct;
-