Class Vec3Argument
java.lang.Object
net.minecraft.commands.arguments.coordinates.Vec3Argument
- All Implemented Interfaces:
ArgumentType<Coordinates>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final SimpleCommandExceptionTypestatic final SimpleCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinatesgetCoordinates(CommandContext<CommandSourceStack> context, String name) static Vec3getVec3(CommandContext<CommandSourceStack> context, String name) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) static Vec3Argumentvec3()static Vec3Argumentvec3(boolean centerCorrect) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_NOT_COMPLETE
-
ERROR_MIXED_TYPE
-
centerCorrect
private final boolean centerCorrect
-
-
Constructor Details
-
Vec3Argument
public Vec3Argument(boolean centerCorrect)
-
-
Method Details
-
vec3
-
vec3
-
getVec3
-
getCoordinates
-
parse
- Specified by:
parsein interfaceArgumentType<Coordinates>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<Coordinates>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<Coordinates>
-