Package net.glowstone.io.nbt
Class NbtScoreboardIoService
java.lang.Object
net.glowstone.io.nbt.NbtScoreboardIoService
- All Implemented Interfaces:
ScoreboardIoService
An implementation of the
ScoreboardIoService which reads and writes scoreboards in NBT
form.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads the main scoreboard.voidsave()voidunload()Unload the service, performing any cleanup necessary.voidwriteMainScoreboard(GlowScoreboard scoreboard) Writes the main scoreboard.
-
Constructor Details
-
NbtScoreboardIoService
-
-
Method Details
-
readMainScoreboard
Description copied from interface:ScoreboardIoServiceLoads the main scoreboard.- Specified by:
readMainScoreboardin interfaceScoreboardIoService- Returns:
GlowScoreboardTheGlowScoreboardread from storage- Throws:
IOException- if an I/O error occurs.
-
writeMainScoreboard
Description copied from interface:ScoreboardIoServiceWrites the main scoreboard.- Specified by:
writeMainScoreboardin interfaceScoreboardIoService- Parameters:
scoreboard- TheGlowScoreboardto write.- Throws:
IOException- if an I/O error occurs.
-
unload
Description copied from interface:ScoreboardIoServiceUnload the service, performing any cleanup necessary.- Specified by:
unloadin interfaceScoreboardIoService- Throws:
IOException- if an I/O error occurs.
-
save
- Specified by:
savein interfaceScoreboardIoService- Throws:
IOException
-