Class Vec3Argument

java.lang.Object
com.zenith.command.brigadier.Vec3Argument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>

public class Vec3Argument 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
    • ERROR_MIXED_TYPE

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

    • Vec3Argument

      public Vec3Argument()
  • Method Details

    • vec3

      public static Vec3Argument vec3()
    • vec3

      public static Vec3Argument vec3(boolean centerCorrect)
    • 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:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Coordinates>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException