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 TypeMethodDescriptionboolean
clearPlot(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue)
boolean
createRoadEast(@NonNull Plot plot, @Nullable QueueCoordinator queue)
Create the road east of the plot (not schematic-based)boolean
createRoadSouth(@NonNull Plot plot, @Nullable QueueCoordinator queue)
Create the road south of the plot (not schematic-based)boolean
createRoadSouthEast(@NonNull Plot plot, @Nullable QueueCoordinator queue)
Create the south-east corner of the road (intersection, not schematic-based)void
getSignLoc(@NonNull Plot plot)
Retrieves the location of where a sign should be for a plot.void
pastePlotSchematic(@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, unClaimPlot
Methods inherited from class com.plotsquared.core.generator.SquarePlotManager
getNearestPlotId, getPlotBottomLocAbs, getPlotId, getPlotIdAbs, getPlotTopLocAbs
Methods 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:
exportTemplate
in classPlotManager
- Throws:
IOException
-
createRoadEast
Description copied from class:PlotManager
Create the road east of the plot (not schematic-based)- Overrides:
createRoadEast
in 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:PlotManager
Create the road south of the plot (not schematic-based)- Overrides:
createRoadSouth
in 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:PlotManager
Create the south-east corner of the road (intersection, not schematic-based)- Overrides:
createRoadSouthEast
in 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:
clearPlot
in classSquarePlotManager
-
pastePlotSchematic
public void pastePlotSchematic(@NonNull QueueCoordinator queue, @NonNull Location bottom, @NonNull Location top) -
getSignLoc
Retrieves the location of where a sign should be for a plot.- Overrides:
getSignLoc
in classClassicPlotManager
- Parameters:
plot
- The plot- Returns:
- The location where a sign should be
-
getHybridPlotWorld
-