Package com.booksaw.betterTeams.team
Class AnchoredPlayerUUIDSetComponent
java.lang.Object
com.booksaw.betterTeams.team.SetTeamComponent<UUID>
com.booksaw.betterTeams.team.UuidSetComponent
com.booksaw.betterTeams.team.AnchoredPlayerUUIDSetComponent
- All Implemented Interfaces:
TeamComponent<Set<UUID>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The result of using the add and remove methods of this enum's enclosing class -
Field Summary
Fields inherited from class com.booksaw.betterTeams.team.SetTeamComponent
set
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(Team team, TeamPlayer player) Recommended to use this add over the void add, as it does the corresponding checksvoid
Used to add a component to this component listvoid
load
(TeamStorage section) Load the value stored in the config into this componentremove
(Team team, TeamPlayer player) Recommended to use this remove over the void remove, as it does the corresponding checksvoid
Used to remove a component from this component listvoid
save
(TeamStorage storage) Store the loaded value to the configuration sectionMethods inherited from class com.booksaw.betterTeams.team.UuidSetComponent
fromString, toString
Methods inherited from class com.booksaw.betterTeams.team.SetTeamComponent
clear, contains, get, getClone, getConvertedList, isEmpty, load, set, size
-
Constructor Details
-
AnchoredPlayerUUIDSetComponent
public AnchoredPlayerUUIDSetComponent()
-
-
Method Details
-
add
Recommended to use this add over the void add, as it does the corresponding checks- Parameters:
team
- The team that the player must be in for this to be successfulplayer
- The team player- Returns:
- AnchorResult
-
add
Description copied from class:SetTeamComponent
Used to add a component to this component list- Overrides:
add
in classSetTeamComponent<UUID>
- Parameters:
team
- the player's teamplayerUUID
- The component to add
-
remove
Recommended to use this remove over the void remove, as it does the corresponding checks- Parameters:
team
- The team that the player must be in for this to be successfulplayer
- The team player- Returns:
- AnchorResult
-
remove
Description copied from class:SetTeamComponent
Used to remove a component from this component list- Overrides:
remove
in classSetTeamComponent<UUID>
- Parameters:
team
- The playe's teamplayerUUID
- The component to remove
-
getSectionHeading
- Specified by:
getSectionHeading
in classSetTeamComponent<UUID>
- Returns:
- The reference within the team storage where the data is stored
-
load
Description copied from interface:TeamComponent
Load the value stored in the config into this component- Parameters:
section
- The configuration section where all the team data is stored
-
save
Description copied from interface:TeamComponent
Store the loaded value to the configuration section- Parameters:
storage
- The storage class where all team storage takes place
-