Package net.glowstone.io
Interface ScoreboardIoService
- All Known Implementing Classes:
NbtScoreboardIoService
public interface ScoreboardIoService
Provider of scoreboard I/O services.
Implemented by classes to provide a way of saving and loading scoreboards to external storage
-
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.
-
Method Details
-
readMainScoreboard
Loads the main scoreboard.- Returns:
GlowScoreboard
TheGlowScoreboard
read from storage- Throws:
IOException
- if an I/O error occurs.
-
writeMainScoreboard
Writes the main scoreboard.- Parameters:
scoreboard
- TheGlowScoreboard
to write.- Throws:
IOException
- if an I/O error occurs.
-
unload
Unload the service, performing any cleanup necessary.- Throws:
IOException
- if an I/O error occurs.
-
save
- Throws:
IOException
-