Interface TeamManager


@NonExtendable public interface TeamManager
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Team
    getTeam(@NotNull String teamIdentifier)
    Tries to find a registered team with the given string identifier.
    @Nullable Team
    getTeamFromEntity(@NotNull org.bukkit.entity.Entity entity)
    Tries to return the team where the given entity is a member of.
    void
    registerTeam(@NotNull Team team)
    Registers a team so that it can be found and persist in storage.
  • Method Details

    • getTeam

      @Nullable @Nullable Team getTeam(@NotNull @NotNull String teamIdentifier)
      Tries to find a registered team with the given string identifier.
      Parameters:
      teamIdentifier - the identifier of the team instance to get
      Returns:
      The Team with the given identifier, or null if not found
    • registerTeam

      void registerTeam(@NotNull @NotNull Team team)
      Registers a team so that it can be found and persist in storage.
      Parameters:
      team - The team instance to register
    • getTeamFromEntity

      @Nullable @Nullable Team getTeamFromEntity(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Tries to return the team where the given entity is a member of.
      Parameters:
      entity - The entity to check
      Returns:
      The Team the entity is in, or null if the entity is in no team.