Interface Line


public interface Line
An interface allowing to work with a line of text in scoreboard.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns configured raw text of this line.
    void
    Changes text to new value.
  • Method Details

    • getText

      String getText()
      Returns configured raw text of this line. Placeholders remain in raw format.
      Returns:
      raw text of this line
    • setText

      void setText(String text)
      Changes text to new value. Supports placeholders, which are automatically registered if needed and refreshed periodically based on configuration. No need to call this method to try to keep placeholders up to date. If value is identical to previous one, nothing happens.
      Parameters:
      text - Raw text to display in the line