Package net.minecraft.command.argument
Class Vec3ArgumentType
java.lang.Object
net.minecraft.command.argument.Vec3ArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<PosArgument>
public class Vec3ArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Vec3ArgumentType(boolean centerIntegers)
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
EXAMPLES
-
INCOMPLETE_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_EXCEPTION -
MIXED_COORDINATE_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MIXED_COORDINATE_EXCEPTION -
centerIntegers
private final boolean centerIntegers
-
-
Constructor Details
-
Vec3ArgumentType
public Vec3ArgumentType(boolean centerIntegers)
-
-
Method Details
-
vec3
-
vec3
-
getVec3
public static Vec3d getVec3(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
getPosArgument
public static PosArgument getPosArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
parse
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-