Interface PlayerDataStorage
public interface PlayerDataStorage
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks whether saved data exists for an identity, without loading it.load(UUID uuid, PlayerDataStorage.PlayerData defaults) voidsave(UUID uuid, PlayerDataStorage.PlayerData data)
-
Method Details
-
load
PlayerDataStorage.PlayerData load(UUID uuid, PlayerDataStorage.PlayerData defaults) throws IOException - Throws:
IOException
-
save
- Throws:
IOException
-
exists
Checks whether saved data exists for an identity, without loading it.- Parameters:
uuid- the player identity- Returns:
trueif data has been saved for that identity- Throws:
IOException- if the check fails
-