Class LocationCoordinate

java.lang.Object
cloud.commandframework.bukkit.parsers.location.LocationCoordinate

public final class LocationCoordinate extends Object
Single coordinate with a type
Since:
1.1.0
  • Method Details

    • of

      public static @NonNull LocationCoordinate of(@NonNull LocationCoordinateType type, double coordinate)
      Create a new location coordinate
      Parameters:
      type - Coordinate type
      coordinate - Coordinate
      Returns:
      Created coordinate instance
    • getType

      public @NonNull LocationCoordinateType getType()
      Get the coordinate type
      Returns:
      Coordinate type
    • getCoordinate

      public double getCoordinate()
      Get the coordinate
      Returns:
      Coordinate
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object