Interface ICustomPlayerConfigGroupDataAPI
- All Known Subinterfaces:
ICustomPlayerConfigGroupAPI
public interface ICustomPlayerConfigGroupDataAPI
API for stored data of a custom player config group
-
Method Summary
Modifier and TypeMethodDescriptioncopyData()Creates a copy of the stored data.Gets a set containing all group IDs directly included in this group.Gets a set of member entries directly included in this group.intgetSize()Gets the size of this custom player group (included members and groups).booleangroupIdIsIncluded(String groupId) Checks whether a specified group ID is included in this group.booleanplayerIdIsIncluded(UUID playerId) Checks whether the player with a specified UUID is one of the member entries.booleanplayerNameIsIncluded(String name) Checks whether a specified player name is one of the member entries.
-
Method Details
-
getDirectGroupIds
Gets a set containing all group IDs directly included in this group.- Returns:
- the set of directly included group IDs, not null
-
copyData
Creates a copy of the stored data.- Returns:
- the copy, not null
-
getSize
int getSize()Gets the size of this custom player group (included members and groups).- Returns:
- the size of the data
-
getDirectMembers
Gets a set of member entries directly included in this group.- Returns:
- the set of direct member entries, not null
-
playerIdIsIncluded
Checks whether the player with a specified UUID is one of the member entries.- Parameters:
playerId- the ID of the player, not null- Returns:
- true if one of the member entries corresponds to the ID, otherwise false
-
playerNameIsIncluded
Checks whether a specified player name is one of the member entries.- Parameters:
name- the player name, can be null- Returns:
- true if the specified player name is not null and corresponds to a member entry, otherwise false
-
groupIdIsIncluded
Checks whether a specified group ID is included in this group.- Parameters:
groupId- the group ID, can be null- Returns:
- true if the specified group ID is not null and corresponds to a group entry, otherwise false
-