Class WarpSetComponent

java.lang.Object
com.booksaw.betterTeams.team.SetTeamComponent<Warp>
com.booksaw.betterTeams.team.WarpSetComponent
All Implemented Interfaces:
TeamComponent<Set<Warp>>

public class WarpSetComponent extends SetTeamComponent<Warp>
  • Constructor Details

    • WarpSetComponent

      public WarpSetComponent()
  • 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<Warp>
      Returns:
      The reference within the team storage where the data is stored
    • fromString

      public Warp fromString(String str)
      Description copied from class: SetTeamComponent
      Used to convert a string into the correct component for this type
      Specified by:
      fromString in class SetTeamComponent<Warp>
      Parameters:
      str - The string to convert
      Returns:
      The value to be added to the list
    • toString

      public String toString(Warp component)
      Description copied from class: SetTeamComponent
      Used to convert a component of the list to a string for saving
      Specified by:
      toString in class SetTeamComponent<Warp>
      Parameters:
      component - The component to convert
      Returns:
      The converted component
    • add

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

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

      public Warp get(String name)