Package com.plotsquared.core.plot.world
Class ScatteredPlotWorld
java.lang.Object
com.plotsquared.core.plot.PlotWorld
com.plotsquared.core.plot.world.ScatteredPlotWorld
Plot world that contains several plot areas (clusters)
-
Constructor Summary
ConstructorDescriptionScatteredPlotWorld
(@NonNull String world) Create a new plot world with a given world name -
Method Summary
Modifier and TypeMethodDescriptionvoid
Register a new area in the worldGet the plot area that contains the given location, or null if the location is not a part of a plot area.getAreas()
Get all plot areas in the worldgetAreasInRegion
(@NonNull CuboidRegion region) Get all plot areas in a specified regionvoid
removeArea
(@NonNull PlotArea area) Remove an area from the world
-
Constructor Details
-
ScatteredPlotWorld
Create a new plot world with a given world name- Parameters:
world
- World name
-
-
Method Details
-
getArea
Description copied from class:PlotWorld
Get the plot area that contains the given location, or null if the location is not a part of a plot area. -
getAreas
Description copied from class:PlotWorld
Get all plot areas in the world -
addArea
Description copied from class:PlotWorld
Register a new area in the world -
removeArea
Description copied from class:PlotWorld
Remove an area from the world- Overrides:
removeArea
in classPlotWorld
- Parameters:
area
- Plot area
-
getAreasInRegion
Description copied from class:PlotWorld
Get all plot areas in a specified region- Specified by:
getAreasInRegion
in classPlotWorld
- Parameters:
region
- Region- Returns:
- All areas in the region
-