public final class NbtScoreboardIoService extends Object implements ScoreboardIoService
ScoreboardIoService which reads and writes scoreboards in NBT
form.| Constructor and Description |
|---|
NbtScoreboardIoService(GlowServer server,
File dir) |
| Modifier and Type | Method and Description |
|---|---|
GlowScoreboard |
readMainScoreboard()
Loads the main scoreboard.
|
void |
save() |
void |
unload()
Unload the service, performing any cleanup necessary.
|
void |
writeMainScoreboard(GlowScoreboard scoreboard)
Writes the main scoreboard.
|
public NbtScoreboardIoService(GlowServer server, File dir)
public GlowScoreboard readMainScoreboard() throws IOException
ScoreboardIoServicereadMainScoreboard in interface ScoreboardIoServiceGlowScoreboard The GlowScoreboard read from storageIOException - if an I/O error occurs.public void writeMainScoreboard(GlowScoreboard scoreboard) throws IOException
ScoreboardIoServicewriteMainScoreboard in interface ScoreboardIoServicescoreboard - The GlowScoreboard to write.IOException - if an I/O error occurs.public void unload()
throws IOException
ScoreboardIoServiceunload in interface ScoreboardIoServiceIOException - if an I/O error occurs.public void save()
throws IOException
save in interface ScoreboardIoServiceIOExceptionCopyright © 2021. All rights reserved.