Class AutoService.AutoQuery
java.lang.Object
com.plotsquared.core.services.plots.AutoService.AutoQuery
- Enclosing interface:
- AutoService
-
Constructor Summary
ConstructorsConstructorDescriptionAutoQuery(@NonNull PlotPlayer<?> player, @Nullable PlotId startId, int sizeX, int sizeZ, @NonNull PlotArea plotArea)Crate a new auto query -
Method Summary
Modifier and TypeMethodDescription@NonNull PlotPlayer<?>Get the player that the plots are meant for@NonNull PlotAreaGet the plot area to search inintgetSizeX()Get the number of plots along the X axisintgetSizeZ()Get the number of plots along the Z axis@Nullable PlotIdGet the plot ID to start searching from
-
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 forstartId- Plot ID to start searching fromsizeX- Number of plots along the X axissizeZ- Number of plots along the Z axisplotArea- 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
-