Package net.glowstone.scoreboard
Class GlowTeam
java.lang.Object
net.glowstone.scoreboard.GlowTeam
- All Implemented Interfaces:
org.bukkit.scoreboard.Team
Implementation for scoreboard teams.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.scoreboard.Team
org.bukkit.scoreboard.Team.Option, org.bukkit.scoreboard.Team.OptionStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPlayer
(org.bukkit.OfflinePlayer player) Deprecated.boolean
boolean
@NotNull net.kyori.adventure.text.format.TextColor
color()
void
color
(@Nullable net.kyori.adventure.text.format.NamedTextColor namedTextColor) @NotNull net.kyori.adventure.text.Component
void
displayName
(@Nullable net.kyori.adventure.text.Component component) org.bukkit.ChatColor
getColor()
org.bukkit.scoreboard.NameTagVisibility
Deprecated.getName()
org.bukkit.scoreboard.NameTagVisibility
org.bukkit.scoreboard.Team.OptionStatus
getOption
(org.bukkit.scoreboard.Team.Option option) getPlayerDisplayName
(String name) Set<org.bukkit.OfflinePlayer>
Deprecated.int
getSize()
boolean
boolean
hasPlayer
(org.bukkit.OfflinePlayer player) Deprecated.@NotNull net.kyori.adventure.text.Component
prefix()
void
prefix
(@Nullable net.kyori.adventure.text.Component component) boolean
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
void
@NotNull net.kyori.adventure.text.Component
suffix()
void
suffix
(@Nullable net.kyori.adventure.text.Component component) void
-
Constructor Details
-
GlowTeam
Creates a team.- Parameters:
scoreboard
- the scoreboard for this team's scoresname
- the team name
-
-
Method Details
-
unregister
- Specified by:
unregister
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
getName
- Specified by:
getName
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
displayName
@NotNull public @NotNull net.kyori.adventure.text.Component displayName() throws IllegalStateException- Specified by:
displayName
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
displayName
public void displayName(@Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalStateException, IllegalArgumentException - Specified by:
displayName
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
prefix
- Specified by:
prefix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
prefix
public void prefix(@Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalStateException, IllegalArgumentException - Specified by:
prefix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
suffix
- Specified by:
suffix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
suffix
public void suffix(@Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalStateException, IllegalArgumentException - Specified by:
suffix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
color
@NotNull public @NotNull net.kyori.adventure.text.format.TextColor color() throws IllegalStateException- Specified by:
color
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
color
public void color(@Nullable @Nullable net.kyori.adventure.text.format.NamedTextColor namedTextColor) - Specified by:
color
in interfaceorg.bukkit.scoreboard.Team
-
getDisplayName
- Specified by:
getDisplayName
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
setDisplayName
public void setDisplayName(String displayName) throws IllegalStateException, IllegalArgumentException - Specified by:
setDisplayName
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
getPrefix
- Specified by:
getPrefix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
setPrefix
- Specified by:
setPrefix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
getSuffix
- Specified by:
getSuffix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
setSuffix
- Specified by:
setSuffix
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
allowFriendlyFire
- Specified by:
allowFriendlyFire
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
setAllowFriendlyFire
- Specified by:
setAllowFriendlyFire
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
canSeeFriendlyInvisibles
- Specified by:
canSeeFriendlyInvisibles
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
setCanSeeFriendlyInvisibles
- Specified by:
setCanSeeFriendlyInvisibles
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
getNameTagVisibility
- Specified by:
getNameTagVisibility
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
setNameTagVisibility
public void setNameTagVisibility(org.bukkit.scoreboard.NameTagVisibility visibility) throws IllegalStateException - Specified by:
setNameTagVisibility
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
getDeathMessageVisibility
@Deprecated public org.bukkit.scoreboard.NameTagVisibility getDeathMessageVisibility() throws IllegalStateExceptionDeprecated.- Throws:
IllegalStateException
-
setDeathMessageVisibility
@Deprecated public void setDeathMessageVisibility(org.bukkit.scoreboard.NameTagVisibility deathMessageVisibility) throws IllegalStateException, IllegalArgumentException Deprecated.Sets to whom death messages are visible.- Parameters:
deathMessageVisibility
- the new death message visibility- Throws:
IllegalStateException
- if this team is not registered with a scoreboardIllegalArgumentException
- ifdeathMessageVisibility
is null
-
getOption
public org.bukkit.scoreboard.Team.OptionStatus getOption(org.bukkit.scoreboard.Team.Option option) throws IllegalStateException - Specified by:
getOption
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
setOption
public void setOption(org.bukkit.scoreboard.Team.Option option, org.bukkit.scoreboard.Team.OptionStatus status) throws IllegalStateException - Specified by:
setOption
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
getEntries
- Specified by:
getEntries
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
getPlayers
Deprecated.- Specified by:
getPlayers
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
hasEntry
- Specified by:
hasEntry
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalArgumentException
IllegalStateException
-
hasPlayer
@Deprecated public boolean hasPlayer(org.bukkit.OfflinePlayer player) throws IllegalArgumentException, IllegalStateException Deprecated.- Specified by:
hasPlayer
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalArgumentException
IllegalStateException
-
getSize
- Specified by:
getSize
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
-
addEntry
- Specified by:
addEntry
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
addPlayer
@Deprecated public void addPlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException Deprecated.- Specified by:
addPlayer
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
setColor
- Specified by:
setColor
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalArgumentException
-
removeEntry
- Specified by:
removeEntry
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
removePlayer
@Deprecated public boolean removePlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException Deprecated.- Specified by:
removePlayer
in interfaceorg.bukkit.scoreboard.Team
- Throws:
IllegalStateException
IllegalArgumentException
-
getPlayerDisplayName
-
getScoreboard
- Specified by:
getScoreboard
in interfaceorg.bukkit.scoreboard.Team
-
getColor
public org.bukkit.ChatColor getColor()- Specified by:
getColor
in interfaceorg.bukkit.scoreboard.Team
-