public interface PlayerDataSerializer
| Modifier and Type | Method and Description |
|---|---|
Optional<InputStream> |
read(String name,
UUID uuid)
Reads player data from
InputStream if the file exists otherwise it will create the default data. |
OutputStream |
write(String name,
UUID uuid)
Writes player data to given
OutputStream. |
Optional<InputStream> read(String name, UUID uuid) throws IOException
InputStream if the file exists otherwise it will create the default data.name - name of player or UUID as Stringuuid - uuid of player. Could be null if name is used.InputStream if the player data existsIOExceptionOutputStream write(String name, UUID uuid) throws IOException
OutputStream.name - name of player or UUID as Stringuuid - uuid of player. Could be null if name is used.IOExceptionCopyright © 2021. All rights reserved.