Package eu.sculkpowered.server.team
Interface Team
public interface Team
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntries
(@NotNull String... entities) Adds new entries to the team.void
Adds a new entry to the team.static @NotNull Team.Builder
builder()
Creates a new builder.@Nullable NamedTextColor
color()
Gets the color of the teamvoid
color
(@Nullable NamedTextColor color) Sets the specified color as the color of the team.@NotNull Component
Gets the display name of the teamvoid
displayName
(@NotNull Component displayName) Sets the specified component as the display name of the team.@NotNull String
name()
Gets the name of the team.@NotNull Component
prefix()
Gets the prefix of the team.void
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
suffix()
Gets the suffix of the team.void
Sets the specified component as the suffix of the team.
-
Method Details
-
name
Gets the name of the team.- Returns:
- the name of the team
- Since:
- 1.0.0
-
displayName
Gets the display name of the team- Returns:
- the display name of the team
- Since:
- 1.0.0
-
displayName
Sets the specified component as the display name of the team.- Parameters:
displayName
- the component to set- Since:
- 1.0.0
-
color
Gets the color of the team- Returns:
- the color of the team
- Since:
- 1.0.0
-
color
Sets the specified color as the color of the team.- Parameters:
color
- the color to set- Since:
- 1.0.0
-
prefix
Gets the prefix of the team.- Returns:
- the prefix of the team
- Since:
- 1.0.0
-
prefix
Sets the specified component as the prefix of the team.- Parameters:
prefix
- the component to set- Since:
- 1.0.0
-
suffix
Gets the suffix of the team.- Returns:
- the suffix of the team
- Since:
- 1.0.0
-
suffix
Sets the specified component as the suffix of the team.- Parameters:
suffix
- the component to set- Since:
- 1.0.0
-
addEntry
Adds a new entry to the team.- Since:
- 1.0.0
-
addEntries
Adds new entries to the team.- Since:
- 1.0.0
-
removeEntry
Removes the entry.- Since:
- 1.0.0
-
removeEntries
Removes the entries.- Since:
- 1.0.0
-
builder
Creates a new builder.- Returns:
- the new created builder
- Since:
- 1.0.0
-