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>
  • Constructor Details

    • EChestComponent

      public EChestComponent()
  • Method Details

    • get

      public org.bukkit.inventory.Inventory get()
      Specified by:
      get in interface TeamComponent<org.bukkit.inventory.Inventory>
      Returns:
      The stored value
    • set

      public void set(org.bukkit.inventory.Inventory inventory)
      Specified by:
      set in interface TeamComponent<org.bukkit.inventory.Inventory>
      Parameters:
      inventory - Set what the currently stored value is
    • load

      public void load(TeamStorage section)
      Description copied from interface: TeamComponent
      Load the value stored in the config into this component
      Specified by:
      load in interface TeamComponent<org.bukkit.inventory.Inventory>
      Parameters:
      section - The configuration section where all the team data is stored
    • save

      public void save(TeamStorage section)
      Description copied from interface: TeamComponent
      Store the loaded value to the configuration section
      Specified by:
      save in interface TeamComponent<org.bukkit.inventory.Inventory>
      Parameters:
      section - The storage class where all team storage takes place