Interface Team


public interface Team
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntries(@NotNull String... entities)
    Adds new entries to the team.
    void
    addEntry(@NotNull String entry)
    Adds a new entry to the team.
    static @NotNull Team.Builder
    Creates a new builder.
    @Nullable NamedTextColor
    Gets the color of the team
    void
    color(@Nullable NamedTextColor color)
    Sets the specified color as the color of the team.
    @NotNull Component
    Gets the display name of the team
    void
    displayName(@NotNull Component displayName)
    Sets the specified component as the display name of the team.
    @NotNull String
    Gets the name of the team.
    @NotNull Component
    Gets the prefix of the team.
    void
    prefix(@NotNull Component prefix)
    Sets the specified component as the prefix of the team.
    void
    removeEntries(@NotNull String... entities)
    Removes the entries.
    void
    removeEntry(@NotNull String entry)
    Removes the entry.
    @NotNull Component
    Gets the suffix of the team.
    void
    suffix(@NotNull Component suffix)
    Sets the specified component as the suffix of the team.
  • Method Details

    • name

      @NotNull @NotNull String name()
      Gets the name of the team.
      Returns:
      the name of the team
      Since:
      1.0.0
    • displayName

      @NotNull @NotNull Component displayName()
      Gets the display name of the team
      Returns:
      the display name of the team
      Since:
      1.0.0
    • displayName

      void displayName(@NotNull @NotNull Component displayName)
      Sets the specified component as the display name of the team.
      Parameters:
      displayName - the component to set
      Since:
      1.0.0
    • color

      @Nullable @Nullable NamedTextColor color()
      Gets the color of the team
      Returns:
      the color of the team
      Since:
      1.0.0
    • color

      void color(@Nullable @Nullable NamedTextColor color)
      Sets the specified color as the color of the team.
      Parameters:
      color - the color to set
      Since:
      1.0.0
    • prefix

      @NotNull @NotNull Component prefix()
      Gets the prefix of the team.
      Returns:
      the prefix of the team
      Since:
      1.0.0
    • prefix

      void prefix(@NotNull @NotNull Component prefix)
      Sets the specified component as the prefix of the team.
      Parameters:
      prefix - the component to set
      Since:
      1.0.0
    • suffix

      @NotNull @NotNull Component suffix()
      Gets the suffix of the team.
      Returns:
      the suffix of the team
      Since:
      1.0.0
    • suffix

      void suffix(@NotNull @NotNull Component suffix)
      Sets the specified component as the suffix of the team.
      Parameters:
      suffix - the component to set
      Since:
      1.0.0
    • addEntry

      void addEntry(@NotNull @NotNull String entry)
      Adds a new entry to the team.
      Since:
      1.0.0
    • addEntries

      void addEntries(@NotNull @NotNull String... entities)
      Adds new entries to the team.
      Since:
      1.0.0
    • removeEntry

      void removeEntry(@NotNull @NotNull String entry)
      Removes the entry.
      Since:
      1.0.0
    • removeEntries

      void removeEntries(@NotNull @NotNull String... entities)
      Removes the entries.
      Since:
      1.0.0
    • builder

      @NotNull static @NotNull Team.Builder builder()
      Creates a new builder.
      Returns:
      the new created builder
      Since:
      1.0.0