Package com.plotsquared.core.plot
Class PlotWorld
java.lang.Object
com.plotsquared.core.plot.PlotWorld
- Direct Known Subclasses:
ScatteredPlotWorld
,StandardPlotWorld
A world that contains plots
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Register a new area in the worldprotected boolean
Deprecated, for removal: This API element is subject to removal in a future version.This method is not meant to be invoked or overridden, with no replacement.boolean
Get the plot area that contains the given location, or null if the location is not a part of a plot area.abstract @NonNull Collection<PlotArea>
getAreas()
Get all plot areas in the worldabstract @NonNull Collection<PlotArea>
getAreasInRegion
(@NonNull CuboidRegion region) Get all plot areas in a specified regiongetWorld()
Get the world nameint
hashCode()
void
removeArea
(@NonNull PlotArea area) Remove an area from the world
-
Constructor Details
-
PlotWorld
Create a new plot world with a given world name- Parameters:
world
- World name
-
-
Method Details
-
getArea
Get the plot area that contains the given location, or null if the location is not a part of a plot area.- Parameters:
location
- Location- Returns:
- Containing plot area, or null
-
getAreas
Get all plot areas in the world- Returns:
- All plot areas in the world
-
getAreasInRegion
Get all plot areas in a specified region- Parameters:
region
- Region- Returns:
- All areas in the region
-
addArea
Register a new area in the world- Parameters:
area
- Plot area
-
removeArea
Remove an area from the world- Parameters:
area
- Plot area
-
getWorld
Get the world name- Returns:
- World name
-
equals
-
hashCode
-
canEqual
Deprecated, for removal: This API element is subject to removal in a future version.This method is not meant to be invoked or overridden, with no replacement.
-