Package com.fastasyncworldedit.core.util
Class WEManager
java.lang.Object
com.fastasyncworldedit.core.util.WEManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addManager
(FaweMaskManager manager) void
addManagers
(Collection<FaweMaskManager> managers) void
cancelEdit
(AbstractDelegateExtent parent, FaweException reason) void
cancelEditSafe
(AbstractDelegateExtent parent, FaweException reason) Region[]
Get a player's allowed WorldEdit region(s).Region[]
getMask
(Player player, FaweMaskManager.MaskType type, boolean isWhitelist) Get a player's mask.boolean
intersects
(Region region1, Region region2) boolean
boolean
regionContains
(Region selection, HashSet<Region> mask) static WEManager
Get an instance of the WEManager.
-
Field Details
-
IMP
Deprecated, for removal: This API element is subject to removal in a future version.UseweManager()
instead.
-
-
Constructor Details
-
WEManager
public WEManager()
-
-
Method Details
-
weManager
Get an instance of the WEManager.- Returns:
- an instance of the WEManager
-
getManagers
-
addManager
-
addManagers
-
cancelEditSafe
public void cancelEditSafe(AbstractDelegateExtent parent, FaweException reason) throws FaweException - Throws:
FaweException
-
cancelEdit
public void cancelEdit(AbstractDelegateExtent parent, FaweException reason) throws WorldEditException - Throws:
WorldEditException
-
isIn
-
getMask
Get a player's allowed WorldEdit region(s). -
getMask
Get a player's mask.- Parameters:
player
- Player to get mask oftype
- Mask type; whether to check if the player is an owner of a member of the regionsisWhitelist
- If searching for whitelist or blacklist regions. True if whitelist- Returns:
- array of allowed regions if whitelist, else of disallowed regions.
-
intersects
-
regionContains
-
weManager()
instead.