Class Vec2Argument
java.lang.Object
com.zenith.command.brigadier.Vec2Argument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>, SerializableArgumentType<Coordinates>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean@NonNull CommandParserbooleanstatic org.cloudburstmc.math.vector.Vector2dgetVec2(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) inthashCode()booleanparse(com.mojang.brigadier.StringReader reader) toString()static Vec2Argumentvec2()static Vec2Argumentvec2(boolean centerCorrect) Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions, parseMethods inherited from interface SerializableArgumentType
askServerForSuggestions, commandProperties
-
Field Details
-
ERROR_NOT_COMPLETE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_COMPLETE
-
-
Constructor Details
-
Vec2Argument
public Vec2Argument(boolean centerCorrect)
-
-
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
-
commandParser
- Specified by:
commandParserin interfaceSerializableArgumentType<Coordinates>
-
isCenterCorrect
public boolean isCenterCorrect() -
equals
-
canEqual
-
hashCode
-
toString
-