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 TypeMethodDescriptionvoidvoidaddPlayer(org.bukkit.OfflinePlayer player) Deprecated.booleanboolean@NotNull net.kyori.adventure.text.format.TextColorcolor()voidcolor(@Nullable net.kyori.adventure.text.format.NamedTextColor namedTextColor) @NotNull net.kyori.adventure.text.ComponentvoiddisplayName(@Nullable net.kyori.adventure.text.Component component) org.bukkit.ChatColorgetColor()org.bukkit.scoreboard.NameTagVisibilityDeprecated.getName()org.bukkit.scoreboard.NameTagVisibilityorg.bukkit.scoreboard.Team.OptionStatusgetOption(org.bukkit.scoreboard.Team.Option option) getPlayerDisplayName(String name) Set<org.bukkit.OfflinePlayer>Deprecated.intgetSize()booleanbooleanhasPlayer(org.bukkit.OfflinePlayer player) Deprecated.@NotNull net.kyori.adventure.text.Componentprefix()voidprefix(@Nullable net.kyori.adventure.text.Component component) booleanbooleanremovePlayer(org.bukkit.OfflinePlayer player) Deprecated.voidsetAllowFriendlyFire(boolean enabled) voidsetCanSeeFriendlyInvisibles(boolean enabled) voidsetColor(org.bukkit.ChatColor color) voidsetDeathMessageVisibility(org.bukkit.scoreboard.NameTagVisibility deathMessageVisibility) Deprecated.voidsetDisplayName(String displayName) voidsetNameTagVisibility(org.bukkit.scoreboard.NameTagVisibility visibility) voidsetOption(org.bukkit.scoreboard.Team.Option option, org.bukkit.scoreboard.Team.OptionStatus status) voidvoid@NotNull net.kyori.adventure.text.Componentsuffix()voidsuffix(@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:
unregisterin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
getName
- Specified by:
getNamein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
displayName
@NotNull public @NotNull net.kyori.adventure.text.Component displayName() throws IllegalStateException- Specified by:
displayNamein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
displayName
public void displayName(@Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalStateException, IllegalArgumentException - Specified by:
displayNamein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
prefix
- Specified by:
prefixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
prefix
public void prefix(@Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalStateException, IllegalArgumentException - Specified by:
prefixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
suffix
- Specified by:
suffixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
suffix
public void suffix(@Nullable @Nullable net.kyori.adventure.text.Component component) throws IllegalStateException, IllegalArgumentException - Specified by:
suffixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
color
@NotNull public @NotNull net.kyori.adventure.text.format.TextColor color() throws IllegalStateException- Specified by:
colorin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
color
public void color(@Nullable @Nullable net.kyori.adventure.text.format.NamedTextColor namedTextColor) - Specified by:
colorin interfaceorg.bukkit.scoreboard.Team
-
getDisplayName
- Specified by:
getDisplayNamein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
setDisplayName
public void setDisplayName(String displayName) throws IllegalStateException, IllegalArgumentException - Specified by:
setDisplayNamein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
getPrefix
- Specified by:
getPrefixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
setPrefix
- Specified by:
setPrefixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
getSuffix
- Specified by:
getSuffixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
setSuffix
- Specified by:
setSuffixin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
allowFriendlyFire
- Specified by:
allowFriendlyFirein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
setAllowFriendlyFire
- Specified by:
setAllowFriendlyFirein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
canSeeFriendlyInvisibles
- Specified by:
canSeeFriendlyInvisiblesin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
setCanSeeFriendlyInvisibles
- Specified by:
setCanSeeFriendlyInvisiblesin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
getNameTagVisibility
- Specified by:
getNameTagVisibilityin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
setNameTagVisibility
public void setNameTagVisibility(org.bukkit.scoreboard.NameTagVisibility visibility) throws IllegalStateException - Specified by:
setNameTagVisibilityin 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- ifdeathMessageVisibilityis null
-
getOption
public org.bukkit.scoreboard.Team.OptionStatus getOption(org.bukkit.scoreboard.Team.Option option) throws IllegalStateException - Specified by:
getOptionin 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:
setOptionin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
getEntries
- Specified by:
getEntriesin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
getPlayers
Deprecated.- Specified by:
getPlayersin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
hasEntry
- Specified by:
hasEntryin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalArgumentExceptionIllegalStateException
-
hasPlayer
@Deprecated public boolean hasPlayer(org.bukkit.OfflinePlayer player) throws IllegalArgumentException, IllegalStateException Deprecated.- Specified by:
hasPlayerin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalArgumentExceptionIllegalStateException
-
getSize
- Specified by:
getSizein interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateException
-
addEntry
- Specified by:
addEntryin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
addPlayer
@Deprecated public void addPlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException Deprecated.- Specified by:
addPlayerin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
setColor
- Specified by:
setColorin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalArgumentException
-
removeEntry
- Specified by:
removeEntryin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
removePlayer
@Deprecated public boolean removePlayer(org.bukkit.OfflinePlayer player) throws IllegalStateException, IllegalArgumentException Deprecated.- Specified by:
removePlayerin interfaceorg.bukkit.scoreboard.Team- Throws:
IllegalStateExceptionIllegalArgumentException
-
getPlayerDisplayName
-
getScoreboard
- Specified by:
getScoreboardin interfaceorg.bukkit.scoreboard.Team
-
getColor
public org.bukkit.ChatColor getColor()- Specified by:
getColorin interfaceorg.bukkit.scoreboard.Team
-