Package net.dzikoysk.funnyguilds.guild
Class RegionUtils
java.lang.Object
net.dzikoysk.funnyguilds.guild.RegionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.static voidDeprecated.for removal in the future, in favour ofRegionManager.deleteRegion(DataModel, Region)static RegionDeprecated.for removal in the future, in favour ofRegionManager.findByName(String)static RegiongetAt(org.bukkit.Location location) Deprecated.for removal in the future, in favour ofRegionManager.findRegionAtLocation(Location)static panda.std.Option<Region>getAtOpt(org.bukkit.Location location) Deprecated.for removal in the future, in favour ofRegionManager.findRegionAtLocation(Location)Deprecated.for removal in the future, in favour ofRegionManager.getRegions()static booleanisIn(org.bukkit.Location location) Deprecated.for removal in the future, in favour ofRegionManager.isInRegion(Location)static booleanisNear(org.bukkit.Location center) Deprecated.for removal in the future, in favour ofRegionManager.isNearRegion(Location)static voidremoveRegion(Region region) Deprecated.for removal in the future, in favour ofRegionManager.removeRegion(Region)static Stringstatic String
-
Method Details
-
getRegions
Deprecated.for removal in the future, in favour ofRegionManager.getRegions()Gets the copied set of regions.- Returns:
- set of regions
-
get
Deprecated.for removal in the future, in favour ofRegionManager.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 ofRegionManager.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 ofRegionManager.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 ofRegionManager.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 ofRegionManager.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.for removal in the future, in favour ofRegionManager.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.for removal in the future, in favour ofRegionManager.removeRegion(Region)Remove region from storage. If you think you should use this method you probably shouldn't - instead useRegionManager.deleteRegion(DataModel, Region).- Parameters:
region- region to remove
-
delete
Deprecated.for removal in the future, in favour ofRegionManager.deleteRegion(DataModel, Region)Delete region in every possible way.- Parameters:
region- region to delete
-
toString
-
toString
-
RegionManager.addRegion(Region)