Package com.booksaw.betterTeams.team
Class WarpSetComponent
- All Implemented Interfaces:
TeamComponent<Set<Warp>>
-
Field Summary
Fields inherited from class com.booksaw.betterTeams.team.SetTeamComponent
set -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidUsed to add a component to this component listfromString(String str) Used to convert a string into the correct component for this typevoidload(TeamStorage section) Load the value stored in the config into this componentvoidUsed to remove a component from this component listvoidsave(TeamStorage storage) Store the loaded value to the configuration sectionUsed to convert a component of the list to a string for savingMethods inherited from class com.booksaw.betterTeams.team.SetTeamComponent
clear, contains, get, getClone, getConvertedList, isEmpty, load, set, size
-
Constructor Details
-
WarpSetComponent
public WarpSetComponent()
-
-
Method Details
-
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
-
getSectionHeading
- Specified by:
getSectionHeadingin classSetTeamComponent<Warp>- Returns:
- The reference within the team storage where the data is stored
-
fromString
Description copied from class:SetTeamComponentUsed to convert a string into the correct component for this type- Specified by:
fromStringin classSetTeamComponent<Warp>- Parameters:
str- The string to convert- Returns:
- The value to be added to the list
-
toString
Description copied from class:SetTeamComponentUsed to convert a component of the list to a string for saving- Specified by:
toStringin classSetTeamComponent<Warp>- Parameters:
component- The component to convert- Returns:
- The converted component
-
add
Description copied from class:SetTeamComponentUsed to add a component to this component list- Overrides:
addin classSetTeamComponent<Warp>- Parameters:
team- the player's teamcomponent- The component to add
-
remove
Description copied from class:SetTeamComponentUsed to remove a component from this component list- Overrides:
removein classSetTeamComponent<Warp>- Parameters:
team- The playe's teamcomponent- The component to remove
-
get
-