Class FastBoard
java.lang.Object
fr.mrmicky.fastboard.FastBoardBase<net.kyori.adventure.text.Component>
fr.mrmicky.fastboard.adventure.FastBoard
Adventure
Component-based implementation of FastBoardBase.-
Nested Class Summary
Nested classes/interfaces inherited from class FastBoardBase
FastBoardBase.ObjectiveMode, FastBoardBase.ScoreboardAction, FastBoardBase.TeamMode -
Field Summary
Fields inherited from class FastBoardBase
COLOR_CODES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.text.Componentprotected voidsendLineChange(int score) Sends a line update packet for the specified internal score.protected StringserializeLine(net.kyori.adventure.text.Component value) protected ObjecttoMinecraftComponent(net.kyori.adventure.text.Component component) Methods inherited from class 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, updateLines, updateScore, updateScores, updateScores, updateTitle
-
Constructor Details
-
FastBoard
public FastBoard(org.bukkit.entity.Player player) Creates a new FastBoard.- Parameters:
player- the owner of the scoreboard
-
-
Method Details
-
sendLineChange
Sends a line update packet for the specified internal score.- Specified by:
sendLineChangein classFastBoardBase<net.kyori.adventure.text.Component>- Parameters:
score- the internal score of the line to update- Throws:
Throwable
-
toMinecraftComponent
protected Object toMinecraftComponent(net.kyori.adventure.text.Component component) throws Throwable - Specified by:
toMinecraftComponentin classFastBoardBase<net.kyori.adventure.text.Component>- Throws:
Throwable
-
serializeLine
- Specified by:
serializeLinein classFastBoardBase<net.kyori.adventure.text.Component>
-
emptyLine
protected net.kyori.adventure.text.Component emptyLine()- Specified by:
emptyLinein classFastBoardBase<net.kyori.adventure.text.Component>
-