Package me.bimmr.bimmcore.scoreboard
Class Board
- java.lang.Object
-
- me.bimmr.bimmcore.utils.timed.TimedObject
-
- me.bimmr.bimmcore.scoreboard.Board
-
public class Board extends TimedObject
The Scoreboard wrapper API
-
-
Field Summary
-
Fields inherited from class me.bimmr.bimmcore.utils.timed.TimedObject
timedEvent
-
-
Constructor Summary
Constructors Constructor Description Board(java.lang.String title)
Board(java.lang.String title, int size)
Board(java.lang.String name, int size, TimedEvent timedEvent)
Board(java.lang.String name, int size, TimedEvent timedEvent, boolean startTimedEvent)
Board(java.lang.String title, TimedEvent timedEvent)
Board(java.lang.String title, TimedEvent timedEvent, boolean startTimedEvent)
-
Method Summary
Modifier and Type Method Description void
add(int index, java.lang.String line)
void
add(int index, java.lang.String line, int value)
BoardLine
add(java.lang.String line)
void
add(java.lang.String line, int value)
void
add(BoardLine boardLine)
void
addBlankLine()
void
clear()
BoardLine
getBoardLine(int lineNo)
java.util.List<BoardLine>
getLines()
java.lang.String
getName()
org.bukkit.scoreboard.Objective
getObjective()
org.bukkit.scoreboard.Scoreboard
getScoreboard()
void
onTaskRun(long time)
void
remove(int lineNo)
void
remove(BoardLine line)
void
reset()
void
send(org.bukkit.entity.Player player)
void
setDisplayName(java.lang.String name)
BoardLine
setText(int lineNo, java.lang.String text)
void
setTitle(java.lang.String title)
-
Methods inherited from class me.bimmr.bimmcore.utils.timed.TimedObject
getTimedEvent, isTaskRunning, setTimedEvent, setTimedEvent, setTimedEvent, setTimedEvent, startTask, stopTask
-
-
-
-
Constructor Detail
-
Board
public Board(java.lang.String title)
-
Board
public Board(java.lang.String title, int size)
-
Board
public Board(java.lang.String title, TimedEvent timedEvent)
-
Board
public Board(java.lang.String title, TimedEvent timedEvent, boolean startTimedEvent)
-
Board
public Board(java.lang.String name, int size, TimedEvent timedEvent)
-
Board
public Board(java.lang.String name, int size, TimedEvent timedEvent, boolean startTimedEvent)
-
-
Method Detail
-
remove
public void remove(int lineNo)
-
setText
public BoardLine setText(int lineNo, java.lang.String text)
-
add
public void add(BoardLine boardLine)
-
add
public BoardLine add(java.lang.String line)
-
add
public void add(int index, java.lang.String line)
-
add
public void add(int index, java.lang.String line, int value)
-
add
public void add(java.lang.String line, int value)
-
getLines
public java.util.List<BoardLine> getLines()
-
getBoardLine
public BoardLine getBoardLine(int lineNo)
-
getObjective
public org.bukkit.scoreboard.Objective getObjective()
-
getScoreboard
public org.bukkit.scoreboard.Scoreboard getScoreboard()
-
send
public void send(org.bukkit.entity.Player player)
-
onTaskRun
public void onTaskRun(long time)
- Overrides:
onTaskRun
in classTimedObject
-
getName
public java.lang.String getName()
-
setTitle
public void setTitle(java.lang.String title)
-
clear
public void clear()
-
reset
public void reset()
-
addBlankLine
public void addBlankLine()
-
remove
public void remove(BoardLine line)
-
setDisplayName
public void setDisplayName(java.lang.String name)
-
-