Class TeamMock

java.lang.Object
be.seeseemelk.mockbukkit.scoreboard.TeamMock
All Implemented Interfaces:
org.bukkit.scoreboard.Team

public class TeamMock extends Object implements org.bukkit.scoreboard.Team
  • Constructor Details

    • TeamMock

      public TeamMock(String name, org.bukkit.scoreboard.Scoreboard board)
  • Method Details

    • getName

      public String getName() throws IllegalStateException
      Specified by:
      getName in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • getDisplayName

      public String getDisplayName() throws IllegalStateException
      Specified by:
      getDisplayName in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • setDisplayName

      public void setDisplayName(String s)
      Specified by:
      setDisplayName in interface org.bukkit.scoreboard.Team
    • getPrefix

      public String getPrefix() throws IllegalStateException
      Specified by:
      getPrefix in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • setPrefix

      public void setPrefix(String s)
      Specified by:
      setPrefix in interface org.bukkit.scoreboard.Team
    • getSuffix

      public String getSuffix() throws IllegalStateException
      Specified by:
      getSuffix in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • setSuffix

      public void setSuffix(String s)
      Specified by:
      setSuffix in interface org.bukkit.scoreboard.Team
    • getColor

      public org.bukkit.ChatColor getColor() throws IllegalStateException
      Specified by:
      getColor in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • setColor

      public void setColor(org.bukkit.ChatColor chatColor)
      Specified by:
      setColor in interface org.bukkit.scoreboard.Team
    • allowFriendlyFire

      public boolean allowFriendlyFire() throws IllegalStateException
      Specified by:
      allowFriendlyFire in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • setAllowFriendlyFire

      public void setAllowFriendlyFire(boolean b) throws IllegalStateException
      Specified by:
      setAllowFriendlyFire in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • canSeeFriendlyInvisibles

      public boolean canSeeFriendlyInvisibles() throws IllegalStateException
      Specified by:
      canSeeFriendlyInvisibles in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • setCanSeeFriendlyInvisibles

      public void setCanSeeFriendlyInvisibles(boolean b) throws IllegalStateException
      Specified by:
      setCanSeeFriendlyInvisibles in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • getNameTagVisibility

      @Deprecated public org.bukkit.scoreboard.NameTagVisibility getNameTagVisibility()
      Deprecated.
      Specified by:
      getNameTagVisibility in interface org.bukkit.scoreboard.Team
    • setNameTagVisibility

      @Deprecated public void setNameTagVisibility(org.bukkit.scoreboard.NameTagVisibility nameTagVisibility)
      Deprecated.
      Specified by:
      setNameTagVisibility in interface org.bukkit.scoreboard.Team
    • getPlayers

      @Deprecated public Set<org.bukkit.OfflinePlayer> getPlayers() throws IllegalStateException
      Deprecated.
      Specified by:
      getPlayers in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • getEntries

      public Set<String> getEntries() throws IllegalStateException
      Specified by:
      getEntries in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • getSize

      public int getSize() throws IllegalStateException
      Specified by:
      getSize in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • getScoreboard

      public org.bukkit.scoreboard.Scoreboard getScoreboard()
      Specified by:
      getScoreboard in interface org.bukkit.scoreboard.Team
    • addPlayer

      @Deprecated public void addPlayer(org.bukkit.OfflinePlayer offlinePlayer)
      Deprecated.
      Specified by:
      addPlayer in interface org.bukkit.scoreboard.Team
    • addEntry

      public void addEntry(String s)
      Specified by:
      addEntry in interface org.bukkit.scoreboard.Team
    • removePlayer

      @Deprecated public boolean removePlayer(org.bukkit.OfflinePlayer offlinePlayer)
      Deprecated.
      Specified by:
      removePlayer in interface org.bukkit.scoreboard.Team
    • removeEntry

      public boolean removeEntry(String s)
      Specified by:
      removeEntry in interface org.bukkit.scoreboard.Team
    • unregister

      public void unregister() throws IllegalStateException
      Specified by:
      unregister in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • hasPlayer

      @Deprecated public boolean hasPlayer(org.bukkit.OfflinePlayer offlinePlayer)
      Deprecated.
      Specified by:
      hasPlayer in interface org.bukkit.scoreboard.Team
    • hasEntry

      public boolean hasEntry(String s)
      Specified by:
      hasEntry in interface org.bukkit.scoreboard.Team
    • getOption

      public org.bukkit.scoreboard.Team.OptionStatus getOption(org.bukkit.scoreboard.Team.Option option) throws IllegalStateException
      Specified by:
      getOption in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException
    • setOption

      public void setOption(org.bukkit.scoreboard.Team.Option option, org.bukkit.scoreboard.Team.OptionStatus optionStatus) throws IllegalStateException
      Specified by:
      setOption in interface org.bukkit.scoreboard.Team
      Throws:
      IllegalStateException