Class TeamMock

java.lang.Object
be.seeseemelk.mockbukkit.scoreboard.TeamMock
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.audience.ForwardingAudience, net.kyori.adventure.pointer.Pointered, org.bukkit.scoreboard.Team

public class TeamMock extends Object implements org.bukkit.scoreboard.Team
Mock implementation of a Team.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience

    net.kyori.adventure.audience.ForwardingAudience.Single

    Nested classes/interfaces inherited from interface org.bukkit.scoreboard.Team

    org.bukkit.scoreboard.Team.Option, org.bukkit.scoreboard.Team.OptionStatus
  • Constructor Summary

    Constructors
    Constructor
    Description
    TeamMock(@NotNull String name, ScoreboardMock board)
    Constructs a new TeamMock for the provided ScoreboardMock with the specified name.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntities(@NotNull Collection<org.bukkit.entity.Entity> entities)
     
    void
    addEntity(@NotNull org.bukkit.entity.Entity entity)
     
    void
    addEntries(@NotNull Collection<String> entries)
     
    void
    addEntry(@NotNull String entry)
     
    void
    addPlayer(@NotNull org.bukkit.OfflinePlayer offlinePlayer)
    Deprecated.
    boolean
     
    @NotNull Iterable<? extends net.kyori.adventure.audience.Audience>
     
    boolean
     
    void
    Throws an exception if the team is not registered.
    @NotNull net.kyori.adventure.text.format.TextColor
     
    void
    color(@Nullable net.kyori.adventure.text.format.NamedTextColor color)
     
    @NotNull net.kyori.adventure.text.Component
     
    void
    displayName(@Nullable net.kyori.adventure.text.Component displayName)
     
    @NotNull org.bukkit.ChatColor
     
    @NotNull String
     
    @NotNull Set<String>
     
    @NotNull String
     
    @NotNull org.bukkit.scoreboard.NameTagVisibility
    Deprecated. 
    @NotNull org.bukkit.scoreboard.Team.OptionStatus
    getOption(@NotNull org.bukkit.scoreboard.Team.Option option)
     
    @NotNull Set<org.bukkit.OfflinePlayer>
    Deprecated. 
    @NotNull String
     
    org.bukkit.scoreboard.Scoreboard
     
    int
     
    @NotNull String
     
    boolean
     
    boolean
    hasEntity(@NotNull org.bukkit.entity.Entity entity)
     
    boolean
    hasEntry(@NotNull String entry)
     
    boolean
    hasPlayer(@NotNull org.bukkit.OfflinePlayer offlinePlayer)
    Deprecated. 
    @NotNull net.kyori.adventure.text.Component
     
    void
    prefix(@Nullable net.kyori.adventure.text.Component prefix)
     
    boolean
    removeEntities(@NotNull Collection<org.bukkit.entity.Entity> entities)
     
    boolean
    removeEntity(@NotNull org.bukkit.entity.Entity entity)
     
    boolean
    removeEntries(@NotNull Collection<String> entries)
     
    boolean
    removeEntry(@NotNull String entry)
     
    boolean
    removePlayer(@NotNull org.bukkit.OfflinePlayer offlinePlayer)
    Deprecated. 
    void
     
    void
     
    void
    setColor(@NotNull org.bukkit.ChatColor chatColor)
     
    void
    setDisplayName(@NotNull String displayName)
     
    void
    setNameTagVisibility(@NotNull org.bukkit.scoreboard.NameTagVisibility nameTagVisibility)
    Deprecated. 
    void
    setOption(@NotNull org.bukkit.scoreboard.Team.Option option, @NotNull org.bukkit.scoreboard.Team.OptionStatus optionStatus)
     
    void
    setPrefix(@NotNull String prefix)
     
    void
    setSuffix(@NotNull String suffix)
     
    @NotNull net.kyori.adventure.text.Component
     
    void
    suffix(@Nullable net.kyori.adventure.text.Component suffix)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.audience.Audience

    deleteMessage, openBook, removeResourcePacks, removeResourcePacks, removeResourcePacks, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, showTitle, stopSound

    Methods inherited from interface net.kyori.adventure.audience.ForwardingAudience

    clearResourcePacks, clearTitle, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, playSound, playSound, playSound, pointers, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendTitlePart, showBossBar, stopSound

    Methods inherited from interface net.kyori.adventure.pointer.Pointered

    get, getOrDefault, getOrDefaultFrom

    Methods inherited from interface org.bukkit.scoreboard.Team

    addEntities, addEntries, removeEntities, removeEntries