Interface Domain

All Known Implementing Classes:
DefaultDomain, GroupDomain, PlayerDomain

public interface Domain
A domain contains a list of memberships.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove all entries.
    boolean
    Returns true if a domain contains a player.
    boolean
    contains(String playerName)
    Deprecated.
    names are deprecated in MC 1.7+ in favor of UUIDs
    boolean
    contains(UUID uniqueId)
    Returns true if a domain contains a player.
    int
    Get the number of entries.
  • Method Details

    • contains

      boolean contains(LocalPlayer player)
      Returns true if a domain contains a player.
      Parameters:
      player - the player to check
      Returns:
      whether this domain contains player
    • contains

      boolean contains(UUID uniqueId)
      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 boolean contains(String playerName)
      Deprecated.
      names are deprecated in MC 1.7+ in favor of UUIDs
      Returns 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.