Package com.plotsquared.core.generator
Class HybridUtils
java.lang.Object
com.plotsquared.core.generator.HybridUtils
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic PlotAreastatic Set<com.sk89q.worldedit.math.BlockVector2> static intstatic HybridUtilsDeprecated, for removal: This API element is subject to removal in a future version.static Set<com.sk89q.worldedit.math.BlockVector2> static boolean -
Constructor Summary
ConstructorsConstructorDescriptionHybridUtils(@NonNull PlotAreaManager plotAreaManager, @NonNull ChunkManager chunkManager, @NonNull GlobalBlockQueue blockQueue, @NonNull WorldUtil worldUtil, @NonNull SchematicHandler schematicHandler, @NonNull EventDispatcher eventDispatcher) -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyzePlot(Plot origin, RunnableVal<PlotAnalysis> whenDone) voidanalyzeRegion(String world, com.sk89q.worldedit.regions.CuboidRegion region, RunnableVal<PlotAnalysis> whenDone) final ArrayList<com.sk89q.worldedit.math.BlockVector2> getChunks(com.sk89q.worldedit.math.BlockVector2 region) voidregeneratePlotWalls(PlotArea area) regenerateRoad(PlotArea area, com.sk89q.worldedit.math.BlockVector2 chunk, int extend, @Nullable QueueCoordinator queueCoordinator) Regenerate the road in a chunk in a plot area.booleanscheduleRoadUpdate(PlotArea area, int extend) booleanscheduleRoadUpdate(PlotArea area, Set<com.sk89q.worldedit.math.BlockVector2> regions, int extend, Set<com.sk89q.worldedit.math.BlockVector2> chunks) booleanscheduleSingleRegionRoadUpdate(Plot plot, int extend) booleansetupRoadSchematic(Plot plot)
-
Field Details
-
manager
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated and likely to be removed in a future release. -
regions
-
height
-
chunks
-
area
-
UPDATE
-
-
Constructor Details
-
HybridUtils
@Inject public HybridUtils(@NonNull PlotAreaManager plotAreaManager, @NonNull ChunkManager chunkManager, @NonNull GlobalBlockQueue blockQueue, @NonNull WorldUtil worldUtil, @NonNull SchematicHandler schematicHandler, @NonNull EventDispatcher eventDispatcher)
-
-
Method Details
-
regeneratePlotWalls
-
analyzeRegion
public void analyzeRegion(String world, com.sk89q.worldedit.regions.CuboidRegion region, RunnableVal<PlotAnalysis> whenDone) -
analyzePlot
-
getChunks
-
scheduleRoadUpdate
-
scheduleSingleRegionRoadUpdate
-
scheduleRoadUpdate
public boolean scheduleRoadUpdate(PlotArea area, Set<com.sk89q.worldedit.math.BlockVector2> regions, int extend, Set<com.sk89q.worldedit.math.BlockVector2> chunks) -
setupRoadSchematic
-
regenerateRoad
public HybridUtils.RoadRegenerateResult regenerateRoad(PlotArea area, com.sk89q.worldedit.math.BlockVector2 chunk, int extend, @Nullable QueueCoordinator queueCoordinator) Regenerate the road in a chunk in a plot area.- Parameters:
area- Plot area to regenerate road forchunk- Chunk location to regenerateextend- How far to extend setting air above the roadqueueCoordinator-QueueCoordinatorto use to set the blocks. Null if one should be created and enqueued- Returns:
HybridUtils.RoadRegenerateResultresult- Since:
- 6.6.0
-