Package com.plotsquared.core.generator
Class SquarePlotManager
java.lang.Object
com.plotsquared.core.plot.PlotManager
com.plotsquared.core.generator.GridPlotManager
com.plotsquared.core.generator.SquarePlotManager
- Direct Known Subclasses:
ClassicPlotManager
A plot manager with a square grid layout, with square shaped plots.
-
Constructor Summary
ConstructorDescriptionSquarePlotManager
(@NonNull SquarePlotWorld squarePlotWorld, @NonNull RegionManager regionManager) -
Method Summary
Modifier and TypeMethodDescriptionboolean
clearPlot
(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) getNearestPlotId
(@NonNull PlotArea plotArea, int x, int y, int z) getPlotBottomLocAbs
(@NonNull PlotId plotId) Get the bottom plot loc (some basic math).getPlotId
(int x, int y, int z) getPlotIdAbs
(int x, int y, int z) getPlotTopLocAbs
(@NonNull PlotId plotId) Methods inherited from class com.plotsquared.core.plot.PlotManager
claimPlot, createRoadEast, createRoadSouth, createRoadSouthEast, exportTemplate, finishPlotMerge, finishPlotUnlink, getPlotComponents, getSignLoc, getWorldHeight, regenerateAllPlotWalls, removeRoadEast, removeRoadSouth, removeRoadSouthEast, setComponent, startPlotMerge, startPlotUnlink, unClaimPlot
-
Constructor Details
-
SquarePlotManager
public SquarePlotManager(@NonNull SquarePlotWorld squarePlotWorld, @NonNull RegionManager regionManager)
-
-
Method Details
-
clearPlot
public boolean clearPlot(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) - Specified by:
clearPlot
in classPlotManager
-
getPlotTopLocAbs
- Specified by:
getPlotTopLocAbs
in classPlotManager
-
getPlotIdAbs
- Specified by:
getPlotIdAbs
in classPlotManager
-
getNearestPlotId
-
getPlotId
- Specified by:
getPlotId
in classPlotManager
-
getPlotBottomLocAbs
Get the bottom plot loc (some basic math).- Specified by:
getPlotBottomLocAbs
in classPlotManager
-