Package me.bimmr.bimmcore.scoreboard
Class BoardLine
- java.lang.Object
-
- me.bimmr.bimmcore.utils.timed.TimedObject
-
- me.bimmr.bimmcore.scoreboard.BoardLine
-
public class BoardLine extends TimedObject
A Line on a Scoreboard
-
-
Field Summary
-
Fields inherited from class me.bimmr.bimmcore.utils.timed.TimedObject
timedEvent
-
-
Constructor Summary
Constructors Constructor Description BoardLine(java.lang.String text)
Create a BoardLineBoardLine(java.lang.String text, int value)
Create a BoardLineBoardLine(java.lang.String text, int value, TimedEvent timedEvent)
Create a BoardLineBoardLine(java.lang.String text, int value, TimedEvent timedEvent, boolean autoStartTimedEvent)
Create a BoardLineBoardLine(java.lang.String text, TimedEvent timedEvent)
Create a BoardLineBoardLine(java.lang.String text, TimedEvent timedEvent, boolean autoStartTimedEvent)
Create a BoardLine
-
Method Summary
Modifier and Type Method Description void
build()
Build the BoardLinevoid
clear()
org.bukkit.scoreboard.Team
getTeam()
Get the teamjava.lang.String
getText()
Get the textint
getValue()
Get the valuevoid
reset()
Remove a line from a Boardvoid
setBoard(Board board)
Set the board that this BoardLine belongs tovoid
setTeam(org.bukkit.scoreboard.Team team)
Set the Line's teamvoid
setText(java.lang.String text)
Set the textvoid
setValue(int value)
Set the valuevoid
update()
-
Methods inherited from class me.bimmr.bimmcore.utils.timed.TimedObject
getTimedEvent, isTaskRunning, onTaskRun, setTimedEvent, setTimedEvent, setTimedEvent, setTimedEvent, startTask, stopTask
-
-
-
-
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 BoardLinevalue = -1
- Parameters:
text
- the textvalue
- the value
-
BoardLine
public BoardLine(java.lang.String text, TimedEvent timedEvent)
Create a BoardLinevalue = -1
- Parameters:
text
- the texttimedEvent
- the timed event
-
BoardLine
public BoardLine(java.lang.String text, TimedEvent timedEvent, boolean autoStartTimedEvent)
Create a BoardLinevalue = -1
- Parameters:
text
- the texttimedEvent
- the timed eventautoStartTimedEvent
- the auto start timed event
-
BoardLine
public BoardLine(java.lang.String text, int value, TimedEvent timedEvent)
Create a BoardLine- Parameters:
text
- the textvalue
- the valuetimedEvent
- the timed event
-
BoardLine
public BoardLine(java.lang.String text, int value, TimedEvent timedEvent, boolean autoStartTimedEvent)
Create a BoardLine- Parameters:
text
- the textvalue
- the valuetimedEvent
- the timed eventautoStartTimedEvent
- 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
-
-