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
ScoreboardIoService
readMainScoreboard
in interface ScoreboardIoService
GlowScoreboard
The GlowScoreboard
read from storageIOException
- if an I/O error occurs.public void writeMainScoreboard(GlowScoreboard scoreboard) throws IOException
ScoreboardIoService
writeMainScoreboard
in interface ScoreboardIoService
scoreboard
- The GlowScoreboard
to write.IOException
- if an I/O error occurs.public void unload() throws IOException
ScoreboardIoService
unload
in interface ScoreboardIoService
IOException
- if an I/O error occurs.public void save() throws IOException
save
in interface ScoreboardIoService
IOException
Copyright © 2021. All rights reserved.