Class XScoreboard

java.lang.Object
org.kingdoms.utils.display.scoreboard.XScoreboard
All Implemented Interfaces:
org.kingdoms.constants.namespace.Namespaced

public class XScoreboard extends Object implements org.kingdoms.constants.namespace.Namespaced
https://minecraft.fandom.com/wiki/Scoreboard Note: PlayerItemHeldEvent for scrolling
  • Constructor Details

  • Method Details

    • update

      public void update(MessagePlaceholderProvider settings)
    • setAlignRight

      public void setAlignRight(String alignRight)
    • addPlayer

      @RequiredThread(SYNC) public void addPlayer(org.bukkit.entity.Player player)
    • removePlayer

      public void removePlayer(org.bukkit.entity.Player player)
    • removeAll

      public void removeAll()
    • addLine

      public XScoreboard.Line addLine(Messenger obj, MessagePlaceholderProvider context)
      Parameters:
      context - the language of the context is ignored.
    • addLine

      public XScoreboard.Line addLine(Messenger obj)
    • clearAll

      public void clearAll()
      This doesn't remove the scoreboard from players, it just resets the lines to be parsed again.
    • useLineNumberAsScore

      public XScoreboard useLineNumberAsScore(boolean lineNumberAsScore)
      True by default, set to false if you want to actually use the score numbers for something.
    • getPreviousScoreboards

      public com.github.benmanes.caffeine.cache.Cache<UUID,org.bukkit.scoreboard.Scoreboard> getPreviousScoreboards()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNamespace

      public @NonNull org.kingdoms.constants.namespace.Namespace getNamespace()
      Specified by:
      getNamespace in interface org.kingdoms.constants.namespace.Namespaced