public class Vec3ArgumentType 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 |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
MIXED_COORDINATE_EXCEPTION |
Constructor and Description |
---|
Vec3ArgumentType(boolean centerIntegers) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static PosArgument |
getPosArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
String string) |
static Vec3d |
getVec3(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 Vec3ArgumentType |
vec3() |
static Vec3ArgumentType |
vec3(boolean centerIntegers) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MIXED_COORDINATE_EXCEPTION
private final boolean centerIntegers
public static Vec3ArgumentType vec3()
public static Vec3ArgumentType vec3(boolean centerIntegers)
public static Vec3d getVec3(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static PosArgument getPosArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
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>