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.Team
IllegalStateException
public String getName() throws IllegalStateException
getName
in interface org.bukkit.scoreboard.Team
IllegalStateException
public String getDisplayName() throws IllegalStateException
getDisplayName
in interface org.bukkit.scoreboard.Team
IllegalStateException
public void setDisplayName(String displayName) throws IllegalStateException, IllegalArgumentException
setDisplayName
in interface org.bukkit.scoreboard.Team
IllegalStateException
IllegalArgumentException
public String getPrefix() throws IllegalStateException
getPrefix
in interface org.bukkit.scoreboard.Team
IllegalStateException
public void setPrefix(String prefix) throws IllegalStateException, IllegalArgumentException
setPrefix
in interface org.bukkit.scoreboard.Team
IllegalStateException
IllegalArgumentException
public String getSuffix() throws IllegalStateException
getSuffix
in interface org.bukkit.scoreboard.Team
IllegalStateException
public void setSuffix(String suffix) throws IllegalStateException, IllegalArgumentException
setSuffix
in interface org.bukkit.scoreboard.Team
IllegalStateException
IllegalArgumentException
public boolean allowFriendlyFire() throws IllegalStateException
allowFriendlyFire
in interface org.bukkit.scoreboard.Team
IllegalStateException
public void setAllowFriendlyFire(boolean enabled) throws IllegalStateException
setAllowFriendlyFire
in interface org.bukkit.scoreboard.Team
IllegalStateException
public boolean canSeeFriendlyInvisibles() throws IllegalStateException
canSeeFriendlyInvisibles
in interface org.bukkit.scoreboard.Team
IllegalStateException
public void setCanSeeFriendlyInvisibles(boolean enabled) throws IllegalStateException
setCanSeeFriendlyInvisibles
in interface org.bukkit.scoreboard.Team
IllegalStateException
public org.bukkit.scoreboard.NameTagVisibility getNameTagVisibility() throws IllegalStateException
getNameTagVisibility
in interface org.bukkit.scoreboard.Team
IllegalStateException
public void setNameTagVisibility(org.bukkit.scoreboard.NameTagVisibility visibility) throws IllegalStateException
setNameTagVisibility
in interface org.bukkit.scoreboard.Team
IllegalStateException
@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.Team
IllegalStateException
public void setOption(org.bukkit.scoreboard.Team.Option option, org.bukkit.scoreboard.Team.OptionStatus status) throws IllegalStateException
setOption
in interface org.bukkit.scoreboard.Team
IllegalStateException
public Set<String> getEntries() throws IllegalStateException
getEntries
in interface org.bukkit.scoreboard.Team
IllegalStateException
@Deprecated public Set<org.bukkit.OfflinePlayer> getPlayers() throws IllegalStateException
getPlayers
in interface org.bukkit.scoreboard.Team
IllegalStateException
public boolean hasEntry(String s) throws IllegalArgumentException, IllegalStateException
hasEntry
in interface org.bukkit.scoreboard.Team
IllegalArgumentException
IllegalStateException
@Deprecated public boolean hasPlayer(org.bukkit.OfflinePlayer player) throws IllegalArgumentException, IllegalStateException
hasPlayer
in interface org.bukkit.scoreboard.Team
IllegalArgumentException
IllegalStateException
public int getSize() throws IllegalStateException
getSize
in interface org.bukkit.scoreboard.Team
IllegalStateException
public void addEntry(String s) throws IllegalStateException, IllegalArgumentException
addEntry
in interface org.bukkit.scoreboard.Team
IllegalStateException
IllegalArgumentException
@Deprecated public void addPlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException
addPlayer
in interface org.bukkit.scoreboard.Team
IllegalStateException
IllegalArgumentException
public void setColor(org.bukkit.ChatColor color) throws IllegalArgumentException
setColor
in interface org.bukkit.scoreboard.Team
IllegalArgumentException
public boolean removeEntry(String s) throws IllegalStateException, IllegalArgumentException
removeEntry
in interface org.bukkit.scoreboard.Team
IllegalStateException
IllegalArgumentException
@Deprecated public boolean removePlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException
removePlayer
in interface org.bukkit.scoreboard.Team
IllegalStateException
IllegalArgumentException
public GlowScoreboard getScoreboard()
getScoreboard
in interface org.bukkit.scoreboard.Team
public org.bukkit.ChatColor getColor()
getColor
in interface org.bukkit.scoreboard.Team
Copyright © 2021. All rights reserved.