Class BoardLine


  • public class BoardLine
    extends TimedObject
    A Line on a Scoreboard
    • Constructor Detail

      • BoardLine

        public BoardLine​(java.lang.String text)
        Create a BoardLine
        Parameters:
        text - the text
      • BoardLine

        public BoardLine​(java.lang.String text,
                         int value)
        Create a BoardLine

        value = -1

        Parameters:
        text - the text
        value - the value
      • BoardLine

        public BoardLine​(java.lang.String text,
                         TimedEvent timedEvent)
        Create a BoardLine

        value = -1

        Parameters:
        text - the text
        timedEvent - the timed event
      • BoardLine

        public BoardLine​(java.lang.String text,
                         TimedEvent timedEvent,
                         boolean autoStartTimedEvent)
        Create a BoardLine

        value = -1

        Parameters:
        text - the text
        timedEvent - the timed event
        autoStartTimedEvent - the auto start timed event
      • BoardLine

        public BoardLine​(java.lang.String text,
                         int value,
                         TimedEvent timedEvent)
        Create a BoardLine
        Parameters:
        text - the text
        value - the value
        timedEvent - the timed event
      • BoardLine

        public BoardLine​(java.lang.String text,
                         int value,
                         TimedEvent timedEvent,
                         boolean autoStartTimedEvent)
        Create a BoardLine
        Parameters:
        text - the text
        value - the value
        timedEvent - the timed event
        autoStartTimedEvent - the auto start timed event
    • Method Detail

      • setBoard

        public void setBoard​(Board board)
        Set the board that this BoardLine belongs to
        Parameters:
        board - the board
      • getText

        public java.lang.String getText()
        Get the text
        Returns:
        text
      • setText

        public void setText​(java.lang.String text)
        Set the text
        Parameters:
        text - the text
      • getValue

        public int getValue()
        Get the value
        Returns:
        value
      • setValue

        public void setValue​(int value)
        Set the value
        Parameters:
        value - the value
      • build

        public void build()
        Build the BoardLine
      • update

        public void update()
      • getTeam

        public org.bukkit.scoreboard.Team getTeam()
        Get the team
        Returns:
        team
      • setTeam

        public void setTeam​(org.bukkit.scoreboard.Team team)
        Set the Line's team
        Parameters:
        team - the team
      • clear

        public void clear()
      • reset

        public void reset()
        Remove a line from a Board