Class StandardPlotWorld

java.lang.Object
com.plotsquared.core.plot.PlotWorld
com.plotsquared.core.plot.world.StandardPlotWorld

public class StandardPlotWorld extends PlotWorld
Ordinary plot world with a single plot area
  • Constructor Details

    • StandardPlotWorld

      public StandardPlotWorld(@NonNull String world, @Nullable PlotArea area)
  • Method Details

    • getArea

      public @Nullable PlotArea getArea(@NonNull Location location)
      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.
      Specified by:
      getArea in class PlotWorld
      Parameters:
      location - Location
      Returns:
      Containing plot area, or null
    • getAreas

      public @NonNull Collection<PlotArea> getAreas()
      Description copied from class: PlotWorld
      Get all plot areas in the world
      Specified by:
      getAreas in class PlotWorld
      Returns:
      All plot areas in the world
    • getAreasInRegion

      public @NonNull Collection<PlotArea> getAreasInRegion(@NonNull com.sk89q.worldedit.regions.CuboidRegion region)
      Description copied from class: PlotWorld
      Get all plot areas in a specified region
      Specified by:
      getAreasInRegion in class PlotWorld
      Parameters:
      region - Region
      Returns:
      All areas in the region