Interface IPlayerPartySystemAPI<P>
- Type Parameters:
P- the type of parties in the implemented system
- All Superinterfaces:
IPlayerPartySystemAPI<P>
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanCreatePartyConfigGroups(UUID playerId) Deprecated.Checks if a player is permitted to create player groups in the party's claims config (the party owner's config).default booleancanEditPartyConfig(UUID playerId) Deprecated.Checks if a player is permitted to edit the party's claims config (the party owner's config).default booleancanIncludeGroupsInPartyConfigGroups(UUID playerId) Deprecated.Checks if a player is permitted to include/exclude player groups in other player groups in the party's claims config (the party owner's config).default booleancanIncludePlayersInPartyConfigGroups(UUID playerId) Deprecated.Checks if a player is permitted to include/exclude players in player groups in the party's claims config (the party owner's config).default intgetMemberCount(P party) Deprecated.Gets the member count of a specified party.default net.minecraft.network.chat.ComponentDeprecated.Gets the display name of a specified party.default UUIDDeprecated.Gets the UUID of the owner of a specified party.Methods inherited from interface xaero.pac.common.server.parties.system.api.v2.IPlayerPartySystemAPI
getColor, getPartyByMember, getPartyByOwner, isPermittedToPartyClaim, isPlayerAllying
-
Method Details
-
canEditPartyConfig
Deprecated.Description copied from interface:IPlayerPartySystemAPIChecks if a player is permitted to edit the party's claims config (the party owner's config).- Specified by:
canEditPartyConfigin interfaceIPlayerPartySystemAPI<P>- Parameters:
playerId- the UUID of the player, not null- Returns:
- true, if the player is permitted to edit the party's claims config, otherwise false
-
canCreatePartyConfigGroups
Deprecated.Description copied from interface:IPlayerPartySystemAPIChecks if a player is permitted to create player groups in the party's claims config (the party owner's config).- Specified by:
canCreatePartyConfigGroupsin interfaceIPlayerPartySystemAPI<P>- Parameters:
playerId- the UUID of the player, not null- Returns:
- true, if the player is permitted to create player groups, otherwise false
-
canIncludeGroupsInPartyConfigGroups
Deprecated.Description copied from interface:IPlayerPartySystemAPIChecks if a player is permitted to include/exclude player groups in other player groups in the party's claims config (the party owner's config).- Specified by:
canIncludeGroupsInPartyConfigGroupsin interfaceIPlayerPartySystemAPI<P>- Parameters:
playerId- the UUID of the player, not null- Returns:
- true, if the player is permitted to include/exclude player groups in other player groups, otherwise false
-
canIncludePlayersInPartyConfigGroups
Deprecated.Description copied from interface:IPlayerPartySystemAPIChecks if a player is permitted to include/exclude players in player groups in the party's claims config (the party owner's config).- Specified by:
canIncludePlayersInPartyConfigGroupsin interfaceIPlayerPartySystemAPI<P>- Parameters:
playerId- the UUID of the player, not null- Returns:
- true, if the player is permitted to include/exclude player groups in other player groups, otherwise false
-
getOwner
Deprecated.Description copied from interface:IPlayerPartySystemAPIGets the UUID of the owner of a specified party.- Specified by:
getOwnerin interfaceIPlayerPartySystemAPI<P>- Parameters:
party- the party the owner of which will be returned, not null- Returns:
- the UUID of the party owner, null if the party has no owner (things won't work!)
-
getName
Deprecated.Description copied from interface:IPlayerPartySystemAPIGets the display name of a specified party.- Specified by:
getNamein interfaceIPlayerPartySystemAPI<P>- Parameters:
party- the party the display name of which will be returned, not null- Returns:
- the party display name as a Component, null if the party doesn't have one
-
getMemberCount
Deprecated.Description copied from interface:IPlayerPartySystemAPIGets the member count of a specified party.- Specified by:
getMemberCountin interfaceIPlayerPartySystemAPI<P>- Parameters:
party- the party the member count of which will be returned, not null- Returns:
- the member count of the party
-
IPlayerPartySystemAPIinsteadThe interface to be overridden by addons that wish to implement additional party systems to be used by Open Parties and Claims (just the claiming feature as of writing this).
Player position synchronization is a part of the default party system. Similar functionality should be implemented in other party systems and supported separately by the map mods that display party members. OPAC does not synchronize or provide party member/ally positions from other party systems, even if they're implemented using this interface.
Party system implementations must be registered in
IPlayerPartySystemRegisterAPI.