public class Vec2ArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
Modifier and Type | Field and Description |
---|---|
private boolean |
centerIntegers |
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INCOMPLETE_EXCEPTION |
Constructor and Description |
---|
Vec2ArgumentType(boolean centerIntegers) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static Vec2f |
getVec2(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) |
PosArgument |
parse(com.mojang.brigadier.StringReader stringReader) |
static Vec2ArgumentType |
vec2() |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_EXCEPTION
private final boolean centerIntegers
public static Vec2ArgumentType vec2()
public static Vec2f getVec2(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>
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<PosArgument>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>