Package com.plotsquared.core.generator
Class HybridPlotManager
java.lang.Object
com.plotsquared.core.plot.PlotManager
com.plotsquared.core.generator.GridPlotManager
com.plotsquared.core.generator.SquarePlotManager
com.plotsquared.core.generator.ClassicPlotManager
com.plotsquared.core.generator.HybridPlotManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHybridPlotManager(@NonNull HybridPlotWorld hybridPlotWorld, @NonNull RegionManager regionManager, @NonNull ProgressSubscriberFactory subscriberFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclearPlot(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) booleancreateRoadEast(@NonNull Plot plot, @Nullable QueueCoordinator queue) Create the road east of the plot (not schematic-based)booleancreateRoadSouth(@NonNull Plot plot, @Nullable QueueCoordinator queue) Create the road south of the plot (not schematic-based)booleancreateRoadSouthEast(@NonNull Plot plot, @Nullable QueueCoordinator queue) Create the south-east corner of the road (intersection, not schematic-based)voidgetSignLoc(@NonNull Plot plot) Retrieves the location of where a sign should be for a plot.voidpastePlotSchematic(@NonNull QueueCoordinator queue, @NonNull Location bottom, @NonNull Location top) Methods inherited from class com.plotsquared.core.generator.ClassicPlotManager
claimPlot, finishPlotMerge, finishPlotUnlink, getPlotComponents, removeRoadEast, removeRoadSouth, removeRoadSouthEast, setAir, setAll, setComponent, setFloor, setMain, setMiddle, setOutline, setWall, setWallFilling, startPlotMerge, startPlotUnlink, unClaimPlotMethods inherited from class com.plotsquared.core.generator.SquarePlotManager
getNearestPlotId, getPlotBottomLocAbs, getPlotId, getPlotIdAbs, getPlotTopLocAbsMethods inherited from class com.plotsquared.core.plot.PlotManager
getWorldHeight, regenerateAllPlotWalls
-
Field Details
-
REGENERATIVE_CLEAR
public static boolean REGENERATIVE_CLEAR
-
-
Constructor Details
-
HybridPlotManager
public HybridPlotManager(@NonNull HybridPlotWorld hybridPlotWorld, @NonNull RegionManager regionManager, @NonNull ProgressSubscriberFactory subscriberFactory)
-
-
Method Details
-
exportTemplate
- Overrides:
exportTemplatein classPlotManager- Throws:
IOException
-
createRoadEast
Description copied from class:PlotManagerCreate the road east of the plot (not schematic-based)- Overrides:
createRoadEastin classClassicPlotManager- Parameters:
plot- plot to create the road forqueue- NullableQueueCoordinator. If null, creates own queue and enqueues, otherwise writes to the queue but does not enqueue.- Returns:
- success or not
-
createRoadSouth
Description copied from class:PlotManagerCreate the road south of the plot (not schematic-based)- Overrides:
createRoadSouthin classClassicPlotManager- Parameters:
plot- plot to create the road forqueue- NullableQueueCoordinator. If null, creates own queue and enqueues, otherwise writes to the queue but does not enqueue.- Returns:
- success or not
-
createRoadSouthEast
Description copied from class:PlotManagerCreate the south-east corner of the road (intersection, not schematic-based)- Overrides:
createRoadSouthEastin classClassicPlotManager- Parameters:
plot- plot to create the road forqueue- NullableQueueCoordinator. If null, creates own queue and enqueues, otherwise writes to the queue but does not enqueue.- Returns:
- success or not
-
clearPlot
public boolean clearPlot(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) - Overrides:
clearPlotin classSquarePlotManager
-
pastePlotSchematic
-
getSignLoc
Retrieves the location of where a sign should be for a plot.- Overrides:
getSignLocin classClassicPlotManager- Parameters:
plot- The plot- Returns:
- The location where a sign should be
-
getHybridPlotWorld
-