public class WGUtils extends Object
| Constructor and Description |
|---|
WGUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canMergeRegionTypes(PSProtectBlock current,
PSRegion mergeInto) |
static void |
copyRegionValues(com.sk89q.worldguard.protection.regions.ProtectedRegion root,
com.sk89q.worldguard.protection.regions.ProtectedRegion copyTo) |
static String |
createPSID(double bx,
double by,
double bz) |
static String |
createPSID(org.bukkit.Location l) |
static HashMap<org.bukkit.World,com.sk89q.worldguard.protection.managers.RegionManager> |
getAllRegionManagers()
Get all of the region managers for all of the worlds.
|
static com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion |
getDefaultProtectedRegion(PSProtectBlock b,
PSLocation v) |
static com.sk89q.worldguard.protection.flags.registry.FlagRegistry |
getFlagRegistry() |
static com.sk89q.worldedit.math.BlockVector3 |
getMaxVector(double bx,
double by,
double bz,
long xRadius,
long yRadius,
long zRadius) |
static com.sk89q.worldedit.math.BlockVector3 |
getMinVector(double bx,
double by,
double bz,
long xRadius,
long yRadius,
long zRadius) |
static HashMap<String,ArrayList<String>> |
getPlayerAdjacentRegionGroups(org.bukkit.entity.Player p,
com.sk89q.worldguard.protection.managers.RegionManager rm) |
static List<com.sk89q.worldedit.math.BlockVector2> |
getPointsFromDecomposedRegion(PSRegion r) |
static com.sk89q.worldguard.protection.managers.RegionManager |
getRegionManagerWithPlayer(org.bukkit.entity.Player p) |
static com.sk89q.worldguard.protection.managers.RegionManager |
getRegionManagerWithWorld(org.bukkit.World w)
Get a RegionManager from a world.
|
static boolean |
hasNoAccess(com.sk89q.worldguard.protection.regions.ProtectedRegion region,
org.bukkit.entity.Player p,
com.sk89q.worldguard.LocalPlayer lp,
boolean canBeMember) |
static String |
matchLocationToPSID(org.bukkit.Location l) |
static boolean |
overlapsStrongerRegion(org.bukkit.World w,
com.sk89q.worldguard.protection.regions.ProtectedRegion r,
com.sk89q.worldguard.LocalPlayer lp) |
static PSLocation |
parsePSRegionToLocation(String regionName) |
public static com.sk89q.worldguard.protection.flags.registry.FlagRegistry getFlagRegistry()
public static com.sk89q.worldguard.protection.managers.RegionManager getRegionManagerWithPlayer(org.bukkit.entity.Player p)
public static com.sk89q.worldguard.protection.managers.RegionManager getRegionManagerWithWorld(org.bukkit.World w)
w - the worldpublic static HashMap<org.bukkit.World,com.sk89q.worldguard.protection.managers.RegionManager> getAllRegionManagers()
public static PSLocation parsePSRegionToLocation(String regionName)
public static boolean overlapsStrongerRegion(org.bukkit.World w,
com.sk89q.worldguard.protection.regions.ProtectedRegion r,
com.sk89q.worldguard.LocalPlayer lp)
public static String matchLocationToPSID(org.bukkit.Location l)
public static com.sk89q.worldedit.math.BlockVector3 getMinVector(double bx,
double by,
double bz,
long xRadius,
long yRadius,
long zRadius)
public static com.sk89q.worldedit.math.BlockVector3 getMaxVector(double bx,
double by,
double bz,
long xRadius,
long yRadius,
long zRadius)
public static String createPSID(double bx, double by, double bz)
public static String createPSID(org.bukkit.Location l)
public static boolean hasNoAccess(com.sk89q.worldguard.protection.regions.ProtectedRegion region,
org.bukkit.entity.Player p,
com.sk89q.worldguard.LocalPlayer lp,
boolean canBeMember)
public static HashMap<String,ArrayList<String>> getPlayerAdjacentRegionGroups(org.bukkit.entity.Player p, com.sk89q.worldguard.protection.managers.RegionManager rm)
public static com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion getDefaultProtectedRegion(PSProtectBlock b, PSLocation v)
public static List<com.sk89q.worldedit.math.BlockVector2> getPointsFromDecomposedRegion(PSRegion r)
public static boolean canMergeRegionTypes(PSProtectBlock current, PSRegion mergeInto)
public static void copyRegionValues(com.sk89q.worldguard.protection.regions.ProtectedRegion root,
com.sk89q.worldguard.protection.regions.ProtectedRegion copyTo)
Copyright © 2021. All rights reserved.