Class FastBoard

java.lang.Object
fr.mrmicky.fastboard.FastBoardBase<net.kyori.adventure.text.Component>
fr.mrmicky.fastboard.adventure.FastBoard

public class FastBoard extends FastBoardBase<net.kyori.adventure.text.Component>
Adventure Component-based implementation of FastBoardBase.
  • Constructor Details

    • FastBoard

      public FastBoard(org.bukkit.entity.Player player)
      Creates a new FastBoard.
      Parameters:
      player - the owner of the scoreboard
  • Method Details

    • sendLineChange

      protected void sendLineChange(int score) throws Throwable
      Sends a line update packet for the specified internal score.
      Specified by:
      sendLineChange in class FastBoardBase<net.kyori.adventure.text.Component>
      Parameters:
      score - the internal score of the line to update
      Throws:
      Throwable
    • toMinecraftComponent

      protected Object toMinecraftComponent(net.kyori.adventure.text.Component component) throws Throwable
      Specified by:
      toMinecraftComponent in class FastBoardBase<net.kyori.adventure.text.Component>
      Throws:
      Throwable
    • serializeLine

      protected String serializeLine(net.kyori.adventure.text.Component value)
      Specified by:
      serializeLine in class FastBoardBase<net.kyori.adventure.text.Component>
    • emptyLine

      protected net.kyori.adventure.text.Component emptyLine()
      Specified by:
      emptyLine in class FastBoardBase<net.kyori.adventure.text.Component>