Interface PartiesHook.Party

Enclosing interface:
PartiesHook

public static interface PartiesHook.Party
Represents a party that holds various members.
  • Method Details

    • getMembers

      Collection<PartiesHook.Member> getMembers(boolean includeLeaders)
      Get all the members that are a part of this party.
      Parameters:
      includeLeaders - Whether the leaders shall be counted as well or not
      Returns:
      All members of the party +- the leaders
    • getLeaders

      Get the leaders of the party.
      Returns:
      All the leaders that maintain this party
    • getMember

      @Nullable default @Nullable PartiesHook.Member getMember(UUID playerUUID)
      Get a member (or leader) by its id.
      Parameters:
      playerUUID - The UUID of the member
      Returns:
      The member that matches the UUID. May be null if there is none