Package com.booksaw.betterTeams.team
Class EChestComponent
java.lang.Object
com.booksaw.betterTeams.team.EChestComponent
- All Implemented Interfaces:
TeamComponent<org.bukkit.inventory.Inventory>
public class EChestComponent
extends Object
implements TeamComponent<org.bukkit.inventory.Inventory>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Inventory holder class given to all Echests controlled by the plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.Inventory
get()
void
load
(TeamStorage section) Load the value stored in the config into this componentvoid
save
(TeamStorage section) Store the loaded value to the configuration sectionvoid
set
(org.bukkit.inventory.Inventory inventory)
-
Constructor Details
-
EChestComponent
public EChestComponent()
-
-
Method Details
-
get
public org.bukkit.inventory.Inventory get()- Specified by:
get
in interfaceTeamComponent<org.bukkit.inventory.Inventory>
- Returns:
- The stored value
-
set
public void set(org.bukkit.inventory.Inventory inventory) - Specified by:
set
in interfaceTeamComponent<org.bukkit.inventory.Inventory>
- Parameters:
inventory
- 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<org.bukkit.inventory.Inventory>
- 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<org.bukkit.inventory.Inventory>
- Parameters:
section
- The storage class where all team storage takes place
-