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.voidsave()voidunload()Unload the service, performing any cleanup necessary.voidwriteMainScoreboard(GlowScoreboard scoreboard) Writes the main scoreboard.
-
Method Details
-
readMainScoreboard
Loads the main scoreboard.- Returns:
GlowScoreboardTheGlowScoreboardread from storage- Throws:
IOException- if an I/O error occurs.
-
writeMainScoreboard
Writes the main scoreboard.- Parameters:
scoreboard- TheGlowScoreboardto 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
-