Package org.bukkit.scoreboard
Interface Team
public interface Team
A team on a scoreboard that has a common display theme and other
 properties. This team is only relevant to the display of the associated
 
scoreboard.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents an option which may be applied to this team.static enumHow an option may be applied to members of this team.
- 
Method SummaryModifier and TypeMethodDescriptionvoidThis puts the specified entry onto this team for the scoreboard.voidaddPlayer(OfflinePlayer player) Deprecated.Teams can contain entries that aren't playersbooleanGets the team friendly fire statebooleanGets the team's ability to seeinvisibleteammates.getColor()Gets the color of the team.Gets the name displayed to entries for this teamGets the Set of entries on the teamgetName()Gets the name of this TeamDeprecated.getOption(Team.Option option) Get an option for this teamDeprecated.Teams can contain entries that aren't playersGets the prefix prepended to the display of entries on this team.Gets the Scoreboard to which this team is attachedintgetSize()Gets the size of the teamGets the suffix appended to the display of entries on this team.booleanChecks to see if the specified entry is a member of this team.booleanhasPlayer(OfflinePlayer player) Deprecated.Teams can contain entries that aren't playersbooleanremoveEntry(String entry) Removes the entry from this team.booleanremovePlayer(OfflinePlayer player) Deprecated.Teams can contain entries that aren't playersvoidsetAllowFriendlyFire(boolean enabled) Sets the team friendly fire statevoidsetCanSeeFriendlyInvisibles(boolean enabled) Sets the team's ability to seeinvisibleteammates.voidSets the color of the team.voidsetDisplayName(String displayName) Sets the name displayed to entries for this teamvoidsetNameTagVisibility(NameTagVisibility visibility) Deprecated.voidsetOption(Team.Option option, Team.OptionStatus status) Set an option for this teamvoidSets the prefix prepended to the display of entries on this team.voidSets the suffix appended to the display of entries on this team.voidUnregisters this team from the Scoreboard
- 
Method Details- 
getNameGets the name of this Team- Returns:
- Objective name
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
getDisplayNameGets the name displayed to entries for this team- Returns:
- Team display name
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
setDisplayNameSets the name displayed to entries for this team- Parameters:
- displayName- New display name
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
getPrefixGets the prefix prepended to the display of entries on this team.- Returns:
- Team prefix
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
setPrefixSets the prefix prepended to the display of entries on this team.- Parameters:
- prefix- New prefix
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
getSuffixGets the suffix appended to the display of entries on this team.- Returns:
- the team's current suffix
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
setSuffixSets the suffix appended to the display of entries on this team.- Parameters:
- suffix- the new suffix for this team.
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
getColorGets the color of the team.
 This only sets the team outline, other occurrences of colors such as in names are handled by prefixes / suffixes.- Returns:
- team color, defaults to ChatColor.RESET
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
setColorSets the color of the team.
 This only sets the team outline, other occurrences of colors such as in names are handled by prefixes / suffixes.- Parameters:
- color- new color, must be non-null. Use- ChatColor.RESETfor no color
 
- 
allowFriendlyFireboolean allowFriendlyFire()Gets the team friendly fire state- Returns:
- true if friendly fire is enabled
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
setAllowFriendlyFirevoid setAllowFriendlyFire(boolean enabled) Sets the team friendly fire state- Parameters:
- enabled- true if friendly fire is to be allowed
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
canSeeFriendlyInvisiblesboolean canSeeFriendlyInvisibles()Gets the team's ability to seeinvisibleteammates.- Returns:
- true if team members can see invisible members
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
setCanSeeFriendlyInvisiblesvoid setCanSeeFriendlyInvisibles(boolean enabled) Sets the team's ability to seeinvisibleteammates.- Parameters:
- enabled- true if invisible teammates are to be visible
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
getNameTagVisibilityDeprecated.Gets the team's ability to see name tags- Returns:
- the current name tag visibility for the team
- Throws:
- IllegalArgumentException- if this team has been unregistered
 
- 
setNameTagVisibilityDeprecated.Set's the team's ability to see name tags- Parameters:
- visibility- The nameTagVisibility to set
- Throws:
- IllegalArgumentException- if this team has been unregistered
 
- 
getPlayersDeprecated.Teams can contain entries that aren't playersGets the Set of players on the team- Returns:
- players on the team
- Throws:
- IllegalStateException- if this team has been unregistered
- See Also:
 
- 
getEntriesGets the Set of entries on the team- Returns:
- entries on the team
- Throws:
- IllegalStateException- if this entries has been unregistered
 
- 
getSizeint getSize()Gets the size of the team- Returns:
- number of entries on the team
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
getScoreboardGets the Scoreboard to which this team is attached- Returns:
- Owning scoreboard, or null if this team has been unregistered
 
- 
addPlayerDeprecated.Teams can contain entries that aren't playersThis puts the specified player onto this team for the scoreboard.This will remove the player from any other team on the scoreboard. - Parameters:
- player- the player to add
- Throws:
- IllegalStateException- if this team has been unregistered
- See Also:
 
- 
addEntryThis puts the specified entry onto this team for the scoreboard.This will remove the entry from any other team on the scoreboard. - Parameters:
- entry- the entry to add
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
removePlayerDeprecated.Teams can contain entries that aren't playersRemoves the player from this team.- Parameters:
- player- the player to remove
- Returns:
- if the player was on this team
- Throws:
- IllegalStateException- if this team has been unregistered
- See Also:
 
- 
removeEntryRemoves the entry from this team.- Parameters:
- entry- the entry to remove
- Returns:
- if the entry was a part of this team
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
unregistervoid unregister()Unregisters this team from the Scoreboard- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
hasPlayerDeprecated.Teams can contain entries that aren't playersChecks to see if the specified player is a member of this team.- Parameters:
- player- the player to search for
- Returns:
- true if the player is a member of this team
- Throws:
- IllegalStateException- if this team has been unregistered
- See Also:
 
- 
hasEntryChecks to see if the specified entry is a member of this team.- Parameters:
- entry- the entry to search for
- Returns:
- true if the entry is a member of this team
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
getOptionGet an option for this team- Parameters:
- option- the option to get
- Returns:
- the option status
- Throws:
- IllegalStateException- if this team has been unregistered
 
- 
setOptionSet an option for this team- Parameters:
- option- the option to set
- status- the new option status
- Throws:
- IllegalStateException- if this team has been unregistered
 
 
-