public static interface Team.Builder extends ResettableBuilder<Team,Team.Builder>
Team
instances.Modifier and Type | Method and Description |
---|---|
Team.Builder |
allowFriendlyFire(boolean enabled)
Sets whether friendly fire is enabled for the
Team . |
Team |
build()
Builds an instance of a
Team . |
Team.Builder |
canSeeFriendlyInvisibles(boolean enabled)
Sets whether invisible team members are shown for the
Team . |
Team.Builder |
collisionRule(CollisionRule rule)
Sets the
CollisionRule for this team's members. |
Team.Builder |
color(TextColor color)
Sets the color of the
Team . |
Team.Builder |
deathTextVisibility(Visibility visibility)
Sets the
Visibility which controls who death Texts
of players on the Team are visible to. |
Team.Builder |
displayName(Text displayName)
Sets the name displayed to users for the
Team . |
Team.Builder |
members(Set<Text> users)
|
Team.Builder |
name(String name)
Sets the name of the
Team . |
Team.Builder |
nameTagVisibility(Visibility visibility)
Sets the
Visibility which controls to who nametags
of players on the Team are visible to. |
Team.Builder |
prefix(Text prefix)
Sets the prefix prepended to the display name of users on the
Team . |
Team.Builder |
suffix(Text suffix)
Sets the suffix appended to the display name of users on the
Team . |
from, reset
Team.Builder name(String name)
Team
.name
- The name to setTeam.Builder color(TextColor color)
Team
.
The team's color is a distinct concept from its prefix or suffix. It is only used for colored sidebar display slots, and certain statistic criteria.
color
- The color to setTeam.Builder displayName(Text displayName) throws IllegalArgumentException
Team
.
Display names may be truncated in order to meet an implementation-defined length limit. In Vanilla, this is sixteen characters.
By default, this is set to name(String)
displayName
- The Text
to setIllegalArgumentException
- If the name is longer than 16
charactersTeam.Builder prefix(Text prefix)
Team
.
Display names may be truncated in order to meet an implementation-defined length limit. In Vanilla, this is sixteen characters.
prefix
- The new prefix for the Team
Team.Builder suffix(Text suffix)
Team
.
Display names may be truncated in order to meet an implementation-defined length limit. In Vanilla, this is sixteen characters.
suffix
- The new suffix for the Team
.Team.Builder allowFriendlyFire(boolean enabled)
Team
.enabled
- Whether friendly fire is enabledTeam.Builder canSeeFriendlyInvisibles(boolean enabled)
Team
.enabled
- Whether to show invisible teammatesTeam.Builder nameTagVisibility(Visibility visibility)
Visibility
which controls to who nametags
of players on the Team
are visible to.visibility
- The Visibility
for the Team
's
nametagsTeam.Builder deathTextVisibility(Visibility visibility)
Visibility
which controls who death Texts
of players on the Team
are visible to.visibility
- The Visibility
for the Team
's
death TextsTeam.Builder collisionRule(CollisionRule rule)
CollisionRule
for this team's members.rule
- The CollisionRule
for the Team
's membersTeam.Builder members(Set<Text> users)
Team build() throws IllegalStateException
Team
.Team
IllegalStateException
- if the Team
is not complete