public interface PlayerDataSerializer
-
Method Summary
Modifier and TypeMethodDescriptionReads player data fromInputStreamif the file exists otherwise it will create the default data.Writes player data to givenOutputStream.
-
Method Details
-
read
Reads player data fromInputStreamif the file exists otherwise it will create the default data.- Parameters:
name- name of player orUUIDasStringuuid- uuid of player. Could be null if name is used.- Returns:
InputStreamif the player data exists- Throws:
IOException
-
write
Writes player data to givenOutputStream.- Parameters:
name- name of player orUUIDasStringuuid- uuid of player. Could be null if name is used.- Returns:
- stream to write player data
- Throws:
IOException
-