Class WorldCoordinates

java.lang.Object
com.zenith.command.brigadier.WorldCoordinates
All Implemented Interfaces:
Coordinates

public class WorldCoordinates extends Object implements Coordinates
  • Constructor Details

    • WorldCoordinates

      public WorldCoordinates()
  • Method Details

    • getPosition

      public org.cloudburstmc.math.vector.Vector3d getPosition(CommandContext source)
      Specified by:
      getPosition in interface Coordinates
    • getRotation

      public org.cloudburstmc.math.vector.Vector2d getRotation(CommandContext source)
      Specified by:
      getRotation in interface Coordinates
    • isXRelative

      public boolean isXRelative()
      Specified by:
      isXRelative in interface Coordinates
    • isYRelative

      public boolean isYRelative()
      Specified by:
      isYRelative in interface Coordinates
    • isZRelative

      public boolean isZRelative()
      Specified by:
      isZRelative in interface Coordinates
    • parseInt

      public static WorldCoordinates parseInt(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parseDouble

      public static WorldCoordinates parseDouble(com.mojang.brigadier.StringReader reader, boolean centerCorrect) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • absolute

      public static WorldCoordinates absolute(double x, double y, double z)
    • absolute

      public static WorldCoordinates absolute(org.cloudburstmc.math.vector.Vector2d vec2)
    • current

      public static WorldCoordinates current()