Package fr.mrmicky.fastboard
Class FastBoard
Lightweight packet-based scoreboard API for Bukkit plugins.
It can be safely used asynchronously as everything is at packet level.
The project is on GitHub.
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.mrmicky.fastboard.FastBoardBase
FastBoardBase.ObjectiveMode, FastBoardBase.ScoreboardAction, FastBoardBase.TeamMode -
Field Summary
Fields inherited from class fr.mrmicky.fastboard.FastBoardBase
COLOR_CODES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected booleanReturn if the player has a prefix/suffix characters limit.protected voidsendLineChange(int score) protected StringserializeLine(String value) protected ObjecttoMinecraftComponent(String line) voidupdateLines(String... lines) Update all the scoreboard lines.voidupdateTitle(String title) Update the scoreboard title.Methods inherited from class fr.mrmicky.fastboard.FastBoardBase
customScoresSupported, delete, getId, getLine, getLineByScore, getLineByScore, getLines, getPlayer, getScore, getScoreByLine, getTitle, isDeleted, removeLine, removeScore, sendDisplayObjectivePacket, sendObjectivePacket, sendScorePacket, sendTeamPacket, sendTeamPacket, size, updateLine, updateLine, updateLines, updateLines, updateScore, updateScores, updateScores
-
Constructor Details
-
FastBoard
public FastBoard(org.bukkit.entity.Player player)
-
-
Method Details
-
updateTitle
Update the scoreboard title.- Overrides:
updateTitlein classFastBoardBase<String>- Parameters:
title- the new scoreboard title
-
updateLines
Update all the scoreboard lines.- Overrides:
updateLinesin classFastBoardBase<String>- Parameters:
lines- the new lines
-
sendLineChange
- Specified by:
sendLineChangein classFastBoardBase<String>- Throws:
Throwable
-
toMinecraftComponent
- Specified by:
toMinecraftComponentin classFastBoardBase<String>- Throws:
Throwable
-
serializeLine
- Specified by:
serializeLinein classFastBoardBase<String>
-
emptyLine
- Specified by:
emptyLinein classFastBoardBase<String>
-
hasLinesMaxLength
protected boolean hasLinesMaxLength()Return if the player has a prefix/suffix characters limit. By default, it returns true only in 1.12 or lower. This method can be overridden to fix compatibility with some versions support plugin.- Returns:
- max length
-