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 TypeMethodDescriptionvoid
Used to add a component to this component listfromString
(String str) Used to convert a string into the correct component for this typevoid
load
(TeamStorage section) Load the value stored in the config into this componentvoid
Used to remove a component from this component listvoid
save
(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: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
-
getSectionHeading
- Specified by:
getSectionHeading
in classSetTeamComponent<Warp>
- Returns:
- The reference within the team storage where the data is stored
-
fromString
Description copied from class:SetTeamComponent
Used to convert a string into the correct component for this type- Specified by:
fromString
in classSetTeamComponent<Warp>
- Parameters:
str
- The string to convert- Returns:
- The value to be added to the list
-
toString
Description copied from class:SetTeamComponent
Used to convert a component of the list to a string for saving- Specified by:
toString
in classSetTeamComponent<Warp>
- Parameters:
component
- The component to convert- Returns:
- The converted component
-
add
Description copied from class:SetTeamComponent
Used to add a component to this component list- Overrides:
add
in classSetTeamComponent<Warp>
- Parameters:
team
- the player's teamcomponent
- The component to add
-
remove
Description copied from class:SetTeamComponent
Used to remove a component from this component list- Overrides:
remove
in classSetTeamComponent<Warp>
- Parameters:
team
- The playe's teamcomponent
- The component to remove
-
get
-