Class Vec3Argument
java.lang.Object
com.zenith.command.brigadier.Vec3Argument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>
public class Vec3Argument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Coordinates>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinatesgetCoordinates(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) static org.cloudburstmc.math.vector.Vector3dgetVec3(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) parse(com.mojang.brigadier.StringReader reader) static Vec3Argumentvec3()static Vec3Argumentvec3(boolean centerCorrect) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions, parse
-
Field Details
-
ERROR_NOT_COMPLETE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_COMPLETE -
ERROR_MIXED_TYPE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_MIXED_TYPE
-
-
Constructor Details
-
Vec3Argument
public Vec3Argument()
-
-
Method Details
-
vec3
-
vec3
-
getVec3
public static org.cloudburstmc.math.vector.Vector3d getVec3(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) -
getCoordinates
public static Coordinates getCoordinates(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) -
parse
public Coordinates parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-