public final class RegionDatabaseUtils extends Object
RegionDatabase| Modifier and Type | Method and Description |
|---|---|
static void |
relinkParents(Map<String,ProtectedRegion> regions,
Map<ProtectedRegion,String> parentSets)
Re-link parent regions on each provided region using the two
provided maps.
|
static <T> boolean |
trySetFlag(ProtectedRegion region,
Flag<T> flag,
Object value)
Try to set a flag on the region.
|
static void |
trySetFlagMap(ProtectedRegion region,
Map<String,Object> flagData)
Try setting the given map of flags onto the region.
|
public static void trySetFlagMap(ProtectedRegion region, Map<String,Object> flagData)
region - the regionflagData - the map of flag datapublic static <T> boolean trySetFlag(ProtectedRegion region, Flag<T> flag, @Nullable Object value)
T - the flag's typeregion - the regionflag - the flagvalue - the value of the flag, which may be nullpublic static void relinkParents(Map<String,ProtectedRegion> regions, Map<ProtectedRegion,String> parentSets)
regions - the map of regions from which parent regions are foundparentSets - a mapping of region to parent nameCopyright © 2015. All Rights Reserved.