Class Vec3Argument
java.lang.Object
com.zenith.command.brigadier.Vec3Argument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>,SerializableArgumentType<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 TypeMethodDescriptionprotected boolean@NonNull CommandParserbooleanstatic 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) inthashCode()booleanparse(com.mojang.brigadier.StringReader reader) toString()static Vec3Argumentvec3()static Vec3Argumentvec3(boolean centerCorrect) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions, parseMethods inherited from interface com.zenith.command.brigadier.SerializableArgumentType
askServerForSuggestions, commandProperties
-
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(boolean centerCorrect)
-
-
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
-
commandParser
- Specified by:
commandParserin interfaceSerializableArgumentType<Coordinates>
-
isCenterCorrect
public boolean isCenterCorrect() -
equals
-
canEqual
-
hashCode
-
toString
-