Interface IClientPlayerConfigGroupManagerAPI
- All Superinterfaces:
ICustomPlayerConfigGroupDataManagerAPI
API for player groups of a player config on the client side
-
Method Summary
Modifier and TypeMethodDescriptionbooleandataExists(String id) Checks whether a specified group ID corresponds to one of the custom groups whose data is stored in this group manager.Gets a sorted list of all group IDs that can be used as config option exception values in this config.intGets the total group space available in this group manager for non-op players.getIds()Gets a set of all custom group IDs the client is currently aware of for this config.intGets the maximum number of groups that a non-op player can create in this group manager.booleanChecks whether server-client synchronization of player groups is currently in progress.
-
Method Details
-
getMaxGroups
int getMaxGroups()Description copied from interface:ICustomPlayerConfigGroupDataManagerAPIGets the maximum number of groups that a non-op player can create in this group manager.- Specified by:
getMaxGroupsin interfaceICustomPlayerConfigGroupDataManagerAPI- Returns:
- the group count limit for non-op players
-
getGroupSpace
int getGroupSpace()Description copied from interface:ICustomPlayerConfigGroupDataManagerAPIGets the total group space available in this group manager for non-op players.- Specified by:
getGroupSpacein interfaceICustomPlayerConfigGroupDataManagerAPI- Returns:
- the total group space available to non-op players
-
getAllIdsSorted
Description copied from interface:ICustomPlayerConfigGroupDataManagerAPIGets a sorted list of all group IDs that can be used as config option exception values in this config.This means that the list always includes player groups from the default player config.
- Specified by:
getAllIdsSortedin interfaceICustomPlayerConfigGroupDataManagerAPI- Returns:
- the list of all IDs usable as config option exception values
-
dataExists
Description copied from interface:ICustomPlayerConfigGroupDataManagerAPIChecks whether a specified group ID corresponds to one of the custom groups whose data is stored in this group manager.- Specified by:
dataExistsin interfaceICustomPlayerConfigGroupDataManagerAPI- Parameters:
id- the group ID, not null- Returns:
- true if this manager stores data for a custom group with the ID, otherwise false
-
isSyncInProgress
boolean isSyncInProgress()Checks whether server-client synchronization of player groups is currently in progress.- Returns:
- true if sync is in progress, otherwise false
-
getIds
Gets a set of all custom group IDs the client is currently aware of for this config.- Returns:
- the set of custom group IDs, not null
-