Package com.booksaw.betterTeams.team
Class MemberSetComponent
java.lang.Object
com.booksaw.betterTeams.team.SetTeamComponent<TeamPlayer>
com.booksaw.betterTeams.team.TeamPlayerSetComponent
com.booksaw.betterTeams.team.MemberSetComponent
- All Implemented Interfaces:
TeamComponent<Set<TeamPlayer>>
-
Field Summary
Fields inherited from class com.booksaw.betterTeams.team.SetTeamComponent
set -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Team team, TeamPlayer teamPlayer) Used to add a component to this component listvoidload(TeamStorage section) Load the value stored in the config into this componentvoidremove(Team team, TeamPlayer teamPlayer) Used to remove a component from this component listvoidsave(TeamStorage storage) Store the loaded value to the configuration sectionMethods inherited from class com.booksaw.betterTeams.team.TeamPlayerSetComponent
broadcastMessage, broadcastTitle, contains, contains, fromString, getOfflinePlayers, getOfflinePlayersString, getOnlinePlayers, getOnlinePlayersString, getOnlineTeamPlayers, getRank, getTeamPlayer, toStringMethods inherited from class com.booksaw.betterTeams.team.SetTeamComponent
clear, get, getClone, getConvertedList, isEmpty, load, set, size
-
Constructor Details
-
MemberSetComponent
public MemberSetComponent()
-
-
Method Details
-
add
Description copied from class:SetTeamComponentUsed to add a component to this component list- Overrides:
addin classSetTeamComponent<TeamPlayer>- Parameters:
team- the player's teamteamPlayer- The component to add
-
remove
Description copied from class:SetTeamComponentUsed to remove a component from this component list- Overrides:
removein classSetTeamComponent<TeamPlayer>- Parameters:
team- The playe's teamteamPlayer- The component to remove
-
getSectionHeading
- Specified by:
getSectionHeadingin classSetTeamComponent<TeamPlayer>- Returns:
- The reference within the team storage where the data is stored
-
load
Description copied from interface:TeamComponentLoad 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:TeamComponentStore the loaded value to the configuration section- Parameters:
storage- The storage class where all team storage takes place
-