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 Details

    • ERROR_NOT_COMPLETE

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_COMPLETE
  • Constructor Details

    • RotationArgument

      public RotationArgument()
  • Method Details

    • rotation

      public static RotationArgument 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:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Coordinates>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException