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
-
Method Summary
Modifier and TypeMethodDescriptionLoads the main scoreboard.void
save()
void
unload()
Unload the service, performing any cleanup necessary.void
writeMainScoreboard
(GlowScoreboard scoreboard) Writes the main scoreboard.
-
Constructor Details
-
NbtScoreboardIoService
-
-
Method Details
-
readMainScoreboard
Description copied from interface:ScoreboardIoService
Loads the main scoreboard.- Specified by:
readMainScoreboard
in interfaceScoreboardIoService
- Returns:
GlowScoreboard
TheGlowScoreboard
read from storage- Throws:
IOException
- if an I/O error occurs.
-
writeMainScoreboard
Description copied from interface:ScoreboardIoService
Writes the main scoreboard.- Specified by:
writeMainScoreboard
in interfaceScoreboardIoService
- Parameters:
scoreboard
- TheGlowScoreboard
to write.- Throws:
IOException
- if an I/O error occurs.
-
unload
Description copied from interface:ScoreboardIoService
Unload the service, performing any cleanup necessary.- Specified by:
unload
in interfaceScoreboardIoService
- Throws:
IOException
- if an I/O error occurs.
-
save
- Specified by:
save
in interfaceScoreboardIoService
- Throws:
IOException
-