Interface IClientPartyAPI
- All Superinterfaces:
IPartyAPI
API for a party on the client side
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of parties allied by this one.Gets a stream of UUIDs of all parties allied by this party.Gets the default name of this party.getId()
Gets the UUID of this party.int
Gets the number of active invitation to this party.Gets a stream of all active invitations for this party.int
Gets the number of members in this party.getMemberInfo
(UUID memberUUID) Gets info about the party member with a specified UUID.Gets a stream of all member info for this party.Gets a stream of all member info for the regular (non-staff) members of this party.getOwner()
Gets the member info for the owner of this party.Gets a stream of all member info for the staff members of this party.boolean
Checks whether the party with a specified UUID is allied by this one.boolean
Checks whether the player with a specified UUID has an active invitation to this party.boolean
setRank
(IPartyMemberAPI member, xaero.pac.common.parties.party.member.PartyMemberRank rank) Sets the rank of a specified party member.
-
Method Details
-
getMemberCount
int getMemberCount()Description copied from interface:IPartyAPI
Gets the number of members in this party.- Specified by:
getMemberCount
in interfaceIPartyAPI
- Returns:
- the member count
-
getMemberInfo
Description copied from interface:IPartyAPI
Gets info about the party member with a specified UUID.- Specified by:
getMemberInfo
in interfaceIPartyAPI
- Parameters:
memberUUID
- the UUID of a party member, not null- Returns:
- the member info, null if doesn't exist
-
getAllyCount
int getAllyCount()Description copied from interface:IPartyAPI
Gets the number of parties allied by this one.- Specified by:
getAllyCount
in interfaceIPartyAPI
- Returns:
- the ally count
-
isAlly
Description copied from interface:IPartyAPI
Checks whether the party with a specified UUID is allied by this one. -
getInviteCount
int getInviteCount()Description copied from interface:IPartyAPI
Gets the number of active invitation to this party.- Specified by:
getInviteCount
in interfaceIPartyAPI
- Returns:
- the invite count
-
isInvited
Description copied from interface:IPartyAPI
Checks whether the player with a specified UUID has an active invitation to this party. -
getMemberInfoStream
Description copied from interface:IPartyAPI
Gets a stream of all member info for this party.- Specified by:
getMemberInfoStream
in interfaceIPartyAPI
- Returns:
- a
Stream
of all member info, not null
-
getStaffInfoStream
Description copied from interface:IPartyAPI
Gets a stream of all member info for the staff members of this party.- Specified by:
getStaffInfoStream
in interfaceIPartyAPI
- Returns:
- a
Stream
of all staff member info, not null
-
getNonStaffInfoStream
Description copied from interface:IPartyAPI
Gets a stream of all member info for the regular (non-staff) members of this party.- Specified by:
getNonStaffInfoStream
in interfaceIPartyAPI
- Returns:
- a
Stream
of all regular member info, not null
-
getInvitedPlayersStream
Description copied from interface:IPartyAPI
Gets a stream of all active invitations for this party.- Specified by:
getInvitedPlayersStream
in interfaceIPartyAPI
- Returns:
- a
Stream
of all active invitations, not null
-
getAllyPartiesStream
Description copied from interface:IPartyAPI
Gets a stream of UUIDs of all parties allied by this party.- Specified by:
getAllyPartiesStream
in interfaceIPartyAPI
- Returns:
- a
Stream
of all allies, not null
-
getOwner
Description copied from interface:IPartyAPI
Gets the member info for the owner of this party. -
getId
Description copied from interface:IPartyAPI
Gets the UUID of this party. -
getDefaultName
Description copied from interface:IPartyAPI
Gets the default name of this party.- Specified by:
getDefaultName
in interfaceIPartyAPI
- Returns:
- the default name, not null
-
setRank
boolean setRank(@Nonnull IPartyMemberAPI member, @Nonnull xaero.pac.common.parties.party.member.PartyMemberRank rank) Description copied from interface:IPartyAPI
Sets the rank of a specified party member.The member info needs to be from this party.
-