Class Vec2Argument
java.lang.Object
com.zenith.command.brigadier.Vec2Argument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>
public class Vec2Argument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Coordinates>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.cloudburstmc.math.vector.Vector2dgetVec2(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) parse(com.mojang.brigadier.StringReader reader) static Vec2Argumentvec2()static Vec2Argumentvec2(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
-
-
Constructor Details
-
Vec2Argument
public Vec2Argument()
-
-
Method Details
-
vec2
-
vec2
-
getVec2
public static org.cloudburstmc.math.vector.Vector2d getVec2(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
-