Class AllyRequestComponent

All Implemented Interfaces:
TeamComponent<Set<UUID>>

public class AllyRequestComponent extends UuidSetComponent
  • Constructor Details

    • AllyRequestComponent

      public AllyRequestComponent()
  • Method Details

    • load

      public void load(TeamStorage section)
      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

      public void save(TeamStorage storage)
      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

      public String getSectionHeading()
      Specified by:
      getSectionHeading in class SetTeamComponent<UUID>
      Returns:
      The reference within the team storage where the data is stored
    • add

      public void add(Team team, UUID component)
      Description copied from class: SetTeamComponent
      Used to add a component to this component list
      Overrides:
      add in class SetTeamComponent<UUID>
      Parameters:
      team - the player's team
      component - The component to add
    • remove

      public void remove(Team team, UUID component)
      Description copied from class: SetTeamComponent
      Used to remove a component from this component list
      Overrides:
      remove in class SetTeamComponent<UUID>
      Parameters:
      team - The playe's team
      component - The component to remove