public final class GlowTeam extends Object implements org.bukkit.scoreboard.Team
| Constructor and Description |
|---|
GlowTeam(GlowScoreboard scoreboard,
String name)
Creates a team.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(String s) |
void |
addPlayer(org.bukkit.OfflinePlayer player)
Deprecated.
|
boolean |
allowFriendlyFire() |
boolean |
canSeeFriendlyInvisibles() |
org.bukkit.ChatColor |
getColor() |
org.bukkit.scoreboard.NameTagVisibility |
getDeathMessageVisibility()
Deprecated.
|
String |
getDisplayName() |
Set<String> |
getEntries() |
String |
getName() |
org.bukkit.scoreboard.NameTagVisibility |
getNameTagVisibility() |
org.bukkit.scoreboard.Team.OptionStatus |
getOption(org.bukkit.scoreboard.Team.Option option) |
String |
getPlayerDisplayName(String name) |
Set<org.bukkit.OfflinePlayer> |
getPlayers()
Deprecated.
|
String |
getPrefix() |
GlowScoreboard |
getScoreboard() |
int |
getSize() |
String |
getSuffix() |
boolean |
hasEntry(String s) |
boolean |
hasPlayer(org.bukkit.OfflinePlayer player)
Deprecated.
|
boolean |
removeEntry(String s) |
boolean |
removePlayer(org.bukkit.OfflinePlayer player)
Deprecated.
|
void |
setAllowFriendlyFire(boolean enabled) |
void |
setCanSeeFriendlyInvisibles(boolean enabled) |
void |
setColor(org.bukkit.ChatColor color) |
void |
setDeathMessageVisibility(org.bukkit.scoreboard.NameTagVisibility deathMessageVisibility)
Deprecated.
|
void |
setDisplayName(String displayName) |
void |
setNameTagVisibility(org.bukkit.scoreboard.NameTagVisibility visibility) |
void |
setOption(org.bukkit.scoreboard.Team.Option option,
org.bukkit.scoreboard.Team.OptionStatus status) |
void |
setPrefix(String prefix) |
void |
setSuffix(String suffix) |
void |
unregister() |
public GlowTeam(GlowScoreboard scoreboard, String name)
scoreboard - the scoreboard for this team's scoresname - the team namepublic void unregister()
throws IllegalStateException
unregister in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic String getName() throws IllegalStateException
getName in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic String getDisplayName() throws IllegalStateException
getDisplayName in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void setDisplayName(String displayName) throws IllegalStateException, IllegalArgumentException
setDisplayName in interface org.bukkit.scoreboard.TeamIllegalStateExceptionIllegalArgumentExceptionpublic String getPrefix() throws IllegalStateException
getPrefix in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void setPrefix(String prefix) throws IllegalStateException, IllegalArgumentException
setPrefix in interface org.bukkit.scoreboard.TeamIllegalStateExceptionIllegalArgumentExceptionpublic String getSuffix() throws IllegalStateException
getSuffix in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void setSuffix(String suffix) throws IllegalStateException, IllegalArgumentException
setSuffix in interface org.bukkit.scoreboard.TeamIllegalStateExceptionIllegalArgumentExceptionpublic boolean allowFriendlyFire()
throws IllegalStateException
allowFriendlyFire in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void setAllowFriendlyFire(boolean enabled)
throws IllegalStateException
setAllowFriendlyFire in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic boolean canSeeFriendlyInvisibles()
throws IllegalStateException
canSeeFriendlyInvisibles in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void setCanSeeFriendlyInvisibles(boolean enabled)
throws IllegalStateException
setCanSeeFriendlyInvisibles in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic org.bukkit.scoreboard.NameTagVisibility getNameTagVisibility()
throws IllegalStateException
getNameTagVisibility in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void setNameTagVisibility(org.bukkit.scoreboard.NameTagVisibility visibility)
throws IllegalStateException
setNameTagVisibility in interface org.bukkit.scoreboard.TeamIllegalStateException@Deprecated public org.bukkit.scoreboard.NameTagVisibility getDeathMessageVisibility() throws IllegalStateException
IllegalStateException@Deprecated public void setDeathMessageVisibility(org.bukkit.scoreboard.NameTagVisibility deathMessageVisibility) throws IllegalStateException, IllegalArgumentException
deathMessageVisibility - the new death message visibilityIllegalStateException - if this team is not registered with a scoreboardIllegalArgumentException - if deathMessageVisibility is nullpublic org.bukkit.scoreboard.Team.OptionStatus getOption(org.bukkit.scoreboard.Team.Option option)
throws IllegalStateException
getOption in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void setOption(org.bukkit.scoreboard.Team.Option option,
org.bukkit.scoreboard.Team.OptionStatus status)
throws IllegalStateException
setOption in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic Set<String> getEntries() throws IllegalStateException
getEntries in interface org.bukkit.scoreboard.TeamIllegalStateException@Deprecated public Set<org.bukkit.OfflinePlayer> getPlayers() throws IllegalStateException
getPlayers in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic boolean hasEntry(String s) throws IllegalArgumentException, IllegalStateException
hasEntry in interface org.bukkit.scoreboard.TeamIllegalArgumentExceptionIllegalStateException@Deprecated public boolean hasPlayer(org.bukkit.OfflinePlayer player) throws IllegalArgumentException, IllegalStateException
hasPlayer in interface org.bukkit.scoreboard.TeamIllegalArgumentExceptionIllegalStateExceptionpublic int getSize()
throws IllegalStateException
getSize in interface org.bukkit.scoreboard.TeamIllegalStateExceptionpublic void addEntry(String s) throws IllegalStateException, IllegalArgumentException
addEntry in interface org.bukkit.scoreboard.TeamIllegalStateExceptionIllegalArgumentException@Deprecated public void addPlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException
addPlayer in interface org.bukkit.scoreboard.TeamIllegalStateExceptionIllegalArgumentExceptionpublic void setColor(org.bukkit.ChatColor color)
throws IllegalArgumentException
setColor in interface org.bukkit.scoreboard.TeamIllegalArgumentExceptionpublic boolean removeEntry(String s) throws IllegalStateException, IllegalArgumentException
removeEntry in interface org.bukkit.scoreboard.TeamIllegalStateExceptionIllegalArgumentException@Deprecated public boolean removePlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException
removePlayer in interface org.bukkit.scoreboard.TeamIllegalStateExceptionIllegalArgumentExceptionpublic GlowScoreboard getScoreboard()
getScoreboard in interface org.bukkit.scoreboard.Teampublic org.bukkit.ChatColor getColor()
getColor in interface org.bukkit.scoreboard.TeamCopyright © 2021. All rights reserved.