Class RegionUtils

java.lang.Object
net.dzikoysk.funnyguilds.guild.RegionUtils

public final class RegionUtils extends Object
  • Method Details

    • getRegions

      @Deprecated @ScheduledForRemoval(inVersion="5.0") public static Set<Region> getRegions()
      Deprecated.
      for removal in the future, in favour of RegionManager.getRegions()
      Gets the copied set of regions.
      Returns:
      set of regions
    • get

      @Deprecated @Nullable @ScheduledForRemoval(inVersion="5.0") public static Region get(String name)
      Deprecated.
      for removal in the future, in favour of RegionManager.findByName(String)
      Gets the region.
      Parameters:
      name - the name of region (probably name of guild)
      Returns:
      the region
    • getAt

      @Deprecated @Nullable @ScheduledForRemoval(inVersion="5.0") public static Region getAt(org.bukkit.Location location)
      Deprecated.
      for removal in the future, in favour of RegionManager.findRegionAtLocation(Location)
      Gets the region.
      Parameters:
      location - the location of region
      Returns:
      the region
    • getAtOpt

      @Deprecated @ScheduledForRemoval(inVersion="5.0") public static panda.std.Option<Region> getAtOpt(org.bukkit.Location location)
      Deprecated.
      for removal in the future, in favour of RegionManager.findRegionAtLocation(Location)
      Gets the region.
      Parameters:
      location - the location of region
      Returns:
      the region
    • isIn

      @Deprecated @ScheduledForRemoval(inVersion="5.0") public static boolean isIn(org.bukkit.Location location)
      Deprecated.
      for removal in the future, in favour of RegionManager.isInRegion(Location)
      Checks if there is a region in the given location.
      Parameters:
      location - the location of region
      Returns:
      if given location is in region
    • isNear

      @Deprecated @ScheduledForRemoval(inVersion="5.0") public static boolean isNear(org.bukkit.Location center)
      Deprecated.
      for removal in the future, in favour of RegionManager.isNearRegion(Location)
      Checks if there is any region in area (used to check if it's possible to create a new guild in given location).
      Parameters:
      center - the center of region
      Returns:
      if is region nearby
    • addRegion

      @Deprecated @ScheduledForRemoval(inVersion="5.0") public static void addRegion(Region region)
      Deprecated.
      for removal in the future, in favour of RegionManager.addRegion(Region)
      Add region to storage. If you think you should use this method you probably shouldn't.
      Parameters:
      region - region to add
    • removeRegion

      @Deprecated @ScheduledForRemoval(inVersion="5.0") public static void removeRegion(Region region)
      Deprecated.
      for removal in the future, in favour of RegionManager.removeRegion(Region)
      Remove region from storage. If you think you should use this method you probably shouldn't - instead use RegionManager.deleteRegion(DataModel, Region).
      Parameters:
      region - region to remove
    • delete

      @Deprecated @ScheduledForRemoval(inVersion="5.0") public static void delete(Region region)
      Deprecated.
      for removal in the future, in favour of RegionManager.deleteRegion(DataModel, Region)
      Delete region in every possible way.
      Parameters:
      region - region to delete
    • toString

      public static String toString(@Nullable Region region)
    • toString

      public static String toString(panda.std.Option<Region> region)