Class RotationArgument
java.lang.Object
com.zenith.command.brigadier.RotationArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>
public class RotationArgument
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 TypeMethodDescriptionprotected booleanbooleanstatic org.cloudburstmc.math.vector.Vector2dgetRotation(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) inthashCode()parse(com.mojang.brigadier.StringReader reader) static RotationArgumentrotation()toString()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, parse
-
Field Details
-
ERROR_NOT_COMPLETE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_COMPLETE
-
-
Constructor Details
-
RotationArgument
public RotationArgument()
-
-
Method Details
-
rotation
-
getRotation
public static org.cloudburstmc.math.vector.Vector2d getRotation(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
-
equals
-
canEqual
-
hashCode
-
toString
-