Interface WhitelistService
- 
 public interface WhitelistServiceRepresents the service for managing a whitelist ofGameProfiles.In Vanilla, the service is controlled by Server.isWhitelistEnabled(). Additionally, operators are always allowed to join, regardless of their absence or presence on the whitelist service.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>addProfile(GameProfile profile)Adds the specifiedGameProfileto this whitelist.java.util.concurrent.CompletableFuture<java.lang.Boolean>isWhitelisted(GameProfile profile)Gets whether the specifiedGameProfileis present on this whitelist.java.util.concurrent.CompletableFuture<java.lang.Boolean>removeProfile(GameProfile profile)Removes the specifiedGameProfilefrom this whitelist, if present.java.util.concurrent.CompletableFuture<java.util.Collection<GameProfile>>whitelistedProfiles()Gets the collection ofGameProfiles present on this whitelist.
 
- 
- 
- 
Method Detail- 
whitelistedProfilesjava.util.concurrent.CompletableFuture<java.util.Collection<GameProfile>> whitelistedProfiles() Gets the collection ofGameProfiles present on this whitelist.- Returns:
- The GameProfiles present on this whitelist
 
 - 
isWhitelistedjava.util.concurrent.CompletableFuture<java.lang.Boolean> isWhitelisted(GameProfile profile) Gets whether the specifiedGameProfileis present on this whitelist.- Parameters:
- profile- The game profile to check for
- Returns:
- Whether the specified GameProfileis present on this whitelist
 
 - 
addProfilejava.util.concurrent.CompletableFuture<java.lang.Boolean> addProfile(GameProfile profile) Adds the specifiedGameProfileto this whitelist.- Parameters:
- profile- The game profile to add
- Returns:
- Whether the specified GameProfilewas already present on this whitelist
 
 - 
removeProfilejava.util.concurrent.CompletableFuture<java.lang.Boolean> removeProfile(GameProfile profile) Removes the specifiedGameProfilefrom this whitelist, if present.- Parameters:
- profile- The game profile to remove
- Returns:
- Whether the specified GameProfilewas present before removal
 
 
- 
 
-