public class DimensionArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Identifier>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_DIMENSION_EXCEPTION |
Constructor and Description |
---|
DimensionArgumentType() |
Modifier and Type | Method and Description |
---|---|
static DimensionArgumentType |
dimension() |
static ServerWorld |
getDimensionArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
Collection<String> |
getExamples() |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
Identifier |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_DIMENSION_EXCEPTION
public Identifier parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<Identifier>
public static DimensionArgumentType dimension()
public static ServerWorld getDimensionArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)