Package de.marcely.bedwars.api.hook
Interface PartiesHook.Party
- Enclosing interface:
PartiesHook
public static interface PartiesHook.Party
Represents a party that holds various members.
-
Method Summary
Modifier and TypeMethodDescriptionGet the leaders of the party.default @Nullable PartiesHook.Member
Get a member (or leader) by its id.getMembers
(boolean includeLeaders) Get all the members that are a part of this party.
-
Method Details
-
getMembers
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
Collection<PartiesHook.Member> getLeaders()Get the leaders of the party.- Returns:
- All the leaders that maintain this party
-
getMember
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
-