net.minecraft.commands.arguments

public class GameModeArgument

implements com.mojang.brigadier.arguments.ArgumentType<GameType>

ef
net.minecraft.commands.arguments.GameModeArgument
net.minecraft.class_7918
net.minecraft.command.argument.GameModeArgumentType
net.minecraft.src.C_256680_
net.minecraft.commands.arguments.GameModeArgument

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_41088
EXAMPLES
f_257050_
private static final GameType[]
b
VALUES
field_41089
VALUES
f_256868_
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
c
ERROR_INVALID
field_41090
INVALID_GAME_MODE_EXCEPTION
f_256859_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public GameType
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_47384(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_259515_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()
public static GameModeArgument
a()
gameMode()
method_47383()
gameMode()
m_257772_()
public static GameType
a(com.mojang.brigadier.context.CommandContext<dt> arg0, String arg1)
getGameMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_47385(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getGameMode(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_257804_(com.mojang.brigadier.context.CommandContext<C_2969_> p_259927_, String p_260246_)