public class Vec3Argument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ILocationArgument>
Modifier and Type | Field and Description |
---|---|
private boolean |
centerIntegers |
private static java.util.Collection<java.lang.String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
POS_INCOMPLETE |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
POS_MIXED_TYPES |
Constructor and Description |
---|
Vec3Argument(boolean centerIntegersIn) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static ILocationArgument |
getLocation(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static Vec3d |
getVec3(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
ILocationArgument |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
static Vec3Argument |
vec3() |
static Vec3Argument |
vec3(boolean centerIntegersIn) |
private static final java.util.Collection<java.lang.String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType POS_INCOMPLETE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType POS_MIXED_TYPES
private final boolean centerIntegers
public static Vec3Argument vec3()
public static Vec3Argument vec3(boolean centerIntegersIn)
public static Vec3d getVec3(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static ILocationArgument getLocation(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name)
public ILocationArgument parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ILocationArgument>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<ILocationArgument>
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ILocationArgument>