|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Method Summary | |
|---|---|
void |
addPlayer(OfflinePlayer player)
This puts the specified player onto this team for the scoreboard. |
boolean |
allowFriendlyFire()
Gets the team friendly fire state |
boolean |
canSeeFriendlyInvisibles()
Gets the team's ability to see invisible teammates. |
String |
getDisplayName()
Gets the name displayed to players for this team |
String |
getName()
Gets the name of this Team |
Set<OfflinePlayer> |
getPlayers()
Gets the Set of players on the team |
String |
getPrefix()
Sets the prefix prepended to the display of players on this team. |
Scoreboard |
getScoreboard()
Gets the Scoreboard to which this team is attached |
int |
getSize()
Gets the size of the team |
String |
getSuffix()
Gets the suffix appended to the display of players on this team. |
boolean |
hasPlayer(OfflinePlayer player)
Checks to see if the specified player is a member of this team. |
boolean |
removePlayer(OfflinePlayer player)
Removes the player from this team. |
void |
setAllowFriendlyFire(boolean enabled)
Sets the team friendly fire state |
void |
setCanSeeFriendlyInvisibles(boolean enabled)
Sets the team's ability to see invisible invisible teammates. |
void |
setDisplayName(String displayName)
Sets the name displayed to players for this team |
void |
setPrefix(String prefix)
Sets the prefix prepended to the display of players on this team. |
void |
setSuffix(String suffix)
Sets the suffix appended to the display of players on this team. |
void |
unregister()
Unregisters this team from the Scoreboard |
| Method Detail |
|---|
String getName()
throws IllegalStateException
IllegalStateException - if this team has been unregistered
String getDisplayName()
throws IllegalStateException
IllegalStateException - if this team has been unregistered
void setDisplayName(String displayName)
throws IllegalStateException,
IllegalArgumentException
displayName - New display name
IllegalArgumentException - if displayName is longer than 32
characters.
IllegalStateException - if this team has been unregistered
String getPrefix()
throws IllegalStateException
IllegalStateException - if this team has been unregistered
void setPrefix(String prefix)
throws IllegalStateException,
IllegalArgumentException
prefix - New prefix
IllegalArgumentException - if prefix is null
IllegalArgumentException - if prefix is longer than 16
characters
IllegalStateException - if this team has been unregistered
String getSuffix()
throws IllegalStateException
IllegalStateException - if this team has been unregistered
void setSuffix(String suffix)
throws IllegalStateException,
IllegalArgumentException
suffix - the new suffix for this team.
IllegalArgumentException - if suffix is null
IllegalArgumentException - if suffix is longer than 16
characters
IllegalStateException - if this team has been unregistered
boolean allowFriendlyFire()
throws IllegalStateException
IllegalStateException - if this team has been unregistered
void setAllowFriendlyFire(boolean enabled)
throws IllegalStateException
enabled - true if friendly fire is to be allowed
IllegalStateException - if this team has been unregistered
boolean canSeeFriendlyInvisibles()
throws IllegalStateException
invisible teammates.
IllegalStateException - if this team has been unregistered
void setCanSeeFriendlyInvisibles(boolean enabled)
throws IllegalStateException
invisible teammates.
enabled - true if invisible teammates are to be visible
IllegalStateException - if this team has been unregistered
Set<OfflinePlayer> getPlayers()
throws IllegalStateException
IllegalStateException - if this team has been unregistered
int getSize()
throws IllegalStateException
IllegalStateException - if this team has been unregisteredScoreboard getScoreboard()
unregistered
void addPlayer(OfflinePlayer player)
throws IllegalStateException,
IllegalArgumentException
This will remove the player from any other team on the scoreboard.
player - the player to add
IllegalArgumentException - if player is null
IllegalStateException - if this team has been unregistered
boolean removePlayer(OfflinePlayer player)
throws IllegalStateException,
IllegalArgumentException
player - the player to remove
IllegalArgumentException - if player is null
IllegalStateException - if this team has been unregistered
void unregister()
throws IllegalStateException
IllegalStateException - if this team has been unregistered
boolean hasPlayer(OfflinePlayer player)
throws IllegalArgumentException,
IllegalStateException
player - the player to search for
IllegalArgumentException - if player is null
IllegalStateException - if this team has been unregistered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||