Class FastBoard
String-based implementation of
FastBoardBase.-
Nested Class Summary
Nested classes/interfaces inherited from class FastBoardBase
FastBoardBase.ObjectiveMode, FastBoardBase.ScoreboardAction, FastBoardBase.TeamMode, FastBoardBase.VersionType -
Field Summary
Fields inherited from class FastBoardBase
COLOR_CODES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected booleanReturns whether scoreboard lines should use the legacy prefix/suffix character limit.protected voidsendLineChange(int score) Sends a line update packet for the specified internal score.protected StringserializeLine(String value) protected ObjecttoMinecraftComponent(String line) voidupdateLines(String... lines) Updates all the scoreboard lines.voidupdateTitle(String title) Updates the scoreboard title.Methods inherited from class FastBoardBase
delete, getId, getLine, getLineByScore, getLineByScore, getLines, getPlayer, getScore, getScoreByLine, getTitle, hasCustomScores, isDeleted, removeLine, removeScore, sendDisplayObjectivePacket, sendModernScorePacket, 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
Updates the scoreboard title.- Overrides:
updateTitlein classFastBoardBase<String>- Parameters:
title- the new scoreboard title- Throws:
NullPointerException- if title is null
-
updateLines
Updates all the scoreboard lines.- Overrides:
updateLinesin classFastBoardBase<String>- Parameters:
lines- the new lines- Throws:
NullPointerException- if lines is null
-
sendLineChange
Sends a line update packet for the specified internal score.- Specified by:
sendLineChangein classFastBoardBase<String>- Parameters:
score- the position to update- 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()Returns whether scoreboard lines should use the legacy prefix/suffix character limit. By default, this is true only on Minecraft 1.12 and earlier. Override this method for compatibility with plugins that provide multi-version support.- Returns:
- true if scoreboard lines are limited by the legacy prefix/suffix length
-