Package com.sk89q.worldguard.domains
Interface Domain
- All Known Implementing Classes:
DefaultDomain,GroupDomain,PlayerDomain
public interface Domain
A domain contains a list of memberships.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Remove all entries.booleancontains(LocalPlayer player)Returns true if a domain contains a player.booleanDeprecated.names are deprecated in MC 1.7+ in favor of UUIDsbooleanReturns true if a domain contains a player.intsize()Get the number of entries.
-
Method Details
-
contains
Returns true if a domain contains a player.- Parameters:
player- the player to check- Returns:
- whether this domain contains
player
-
contains
Returns true if a domain contains a player.This method doesn't check for groups!
- Parameters:
uniqueId- the UUID of the user- Returns:
- whether this domain contains a player by that name
-
contains
Deprecated.names are deprecated in MC 1.7+ in favor of UUIDsReturns true if a domain contains a player.This method doesn't check for groups!
- Parameters:
playerName- The name of the player to check- Returns:
- whether this domain contains a player by that name
-
size
int size()Get the number of entries.- Returns:
- the number of entries
-
clear
void clear()Remove all entries.
-