Class AutoService.AutoQuery

java.lang.Object
com.plotsquared.core.services.plots.AutoService.AutoQuery
Enclosing interface:
AutoService

public static final class AutoService.AutoQuery extends Object
  • Constructor Details

    • AutoQuery

      public AutoQuery(@NonNull PlotPlayer<?> player, @Nullable PlotId startId, int sizeX, int sizeZ, @NonNull PlotArea plotArea)
      Crate a new auto query
      Parameters:
      player - Player to claim for
      startId - Plot ID to start searching from
      sizeX - Number of plots along the X axis
      sizeZ - Number of plots along the Z axis
      plotArea - Plot area to search in
  • Method Details

    • getPlayer

      Get the player that the plots are meant for
      Returns:
      Player
    • getStartId

      Get the plot ID to start searching from
      Returns:
      Start ID
    • getSizeX

      public int getSizeX()
      Get the number of plots along the X axis
      Returns:
      Number of plots along the X axis
    • getSizeZ

      public int getSizeZ()
      Get the number of plots along the Z axis
      Returns:
      Number of plots along the Z axis
    • getPlotArea

      Get the plot area to search in
      Returns:
      Plot area