public interface WhitelistService
GameProfiles.
In Vanilla, the service is controlled by Server.hasWhitelist().
Additionally, operators are always allowed to join, regardless of their
absence or presence on the whitelist service.
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProfile(GameProfile profile)
Adds the specified
GameProfile to this whitelist. |
Collection<GameProfile> |
getWhitelistedProfiles()
Gets the collection of
GameProfiles present on this whitelist. |
boolean |
isWhitelisted(GameProfile profile)
Gets whether the specified
GameProfile is present on this
whitelist. |
boolean |
removeProfile(GameProfile profile)
Removes the specified
GameProfile from this whitelist, if present. |
Collection<GameProfile> getWhitelistedProfiles()
GameProfiles present on this whitelist.GameProfiles present on this whitelistboolean isWhitelisted(GameProfile profile)
GameProfile is present on this
whitelist.profile - The game profile to check forGameProfile is present on this
whitelistboolean addProfile(GameProfile profile)
GameProfile to this whitelist.profile - The game profile to addGameProfile was already present on
this whitelistboolean removeProfile(GameProfile profile)
GameProfile from this whitelist, if present.profile - The game profile to removeGameProfile was present before
removal