Package com.booksaw.betterTeams.team
Class MetaComponent
java.lang.Object
com.booksaw.betterTeams.team.MetaComponent
- All Implemented Interfaces:
TeamComponent<TeamMeta>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
void
load
(TeamStorage section) Load the value stored in the config into this componentvoid
save
(TeamStorage storage) Store the loaded value to the configuration sectionvoid
-
Constructor Details
-
MetaComponent
public MetaComponent()
-
-
Method Details
-
get
- Specified by:
get
in interfaceTeamComponent<TeamMeta>
- Returns:
- The stored value
-
set
- Specified by:
set
in interfaceTeamComponent<TeamMeta>
- Parameters:
value
- Set what the currently stored value is
-
load
Description copied from interface:TeamComponent
Load the value stored in the config into this component- Specified by:
load
in interfaceTeamComponent<TeamMeta>
- 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- Specified by:
save
in interfaceTeamComponent<TeamMeta>
- Parameters:
storage
- The storage class where all team storage takes place
-