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 TypeMethodDescriptionvoidRegister a new area in the worldprotected booleanbooleanabstract @Nullable PlotAreaGet 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 com.sk89q.worldedit.regions.CuboidRegion region)Get all plot areas in a specified regiongetWorld()Get the world nameinthashCode()voidremoveArea(@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
public abstract @NonNull Collection<PlotArea> getAreasInRegion(@NonNull com.sk89q.worldedit.regions.CuboidRegion region)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
-
canEqual
-
hashCode
public int hashCode()
-