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 TypeClassDescriptionclassInventory holder class given to all Echests controlled by the plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.Inventoryget()voidload(TeamStorage section) Load the value stored in the config into this componentvoidsave(TeamStorage section) Store the loaded value to the configuration sectionvoidset(org.bukkit.inventory.Inventory inventory)
-
Constructor Details
-
EChestComponent
public EChestComponent()
-
-
Method Details
-
get
public org.bukkit.inventory.Inventory get()- Specified by:
getin interfaceTeamComponent<org.bukkit.inventory.Inventory>- Returns:
- The stored value
-
set
public void set(org.bukkit.inventory.Inventory inventory) - Specified by:
setin interfaceTeamComponent<org.bukkit.inventory.Inventory>- Parameters:
inventory- Set what the currently stored value is
-
load
Description copied from interface:TeamComponentLoad the value stored in the config into this component- Specified by:
loadin interfaceTeamComponent<org.bukkit.inventory.Inventory>- 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- Specified by:
savein interfaceTeamComponent<org.bukkit.inventory.Inventory>- Parameters:
section- The storage class where all team storage takes place
-