Class PlotLoc

java.lang.Object
com.plotsquared.core.location.PlotLoc

public final class PlotLoc extends Object
(x,y,z) or (x,z) representation for PlotSquared (hence the "Plot" prefix)
  • Constructor Details

    • PlotLoc

      public PlotLoc(int x, int z)
      Initialize a new PlotLoc and set the Y value to -1
      Parameters:
      x - X value
      z - Z value
    • PlotLoc

      public PlotLoc(int x, int y, int z)
  • Method Details

    • fromString

      public static @Nullable PlotLoc fromString(String input)
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object