Interface AutoStoreSettingProvider
public interface AutoStoreSettingProvider
An interface to load/save
AutoStoreSettings.-
Method Summary
Modifier and TypeMethodDescription@Nullable AutoStoreSettinggetIfLoaded(@NotNull UUID uuid) Gets the player'sAutoStoreSettingif loaded.@NotNull AutoStoreSettingGets or load the player'sAutoStoreSetting.booleanChecks if theAutoStoreSettingof the specifiedPlayeris loaded.voidsave(@NotNull AutoStoreSetting setting) Saves theAutoStoreSetting.
-
Method Details
-
isLoaded
Checks if theAutoStoreSettingof the specifiedPlayeris loaded.- Parameters:
uuid- thePlayer'sUUIDto check- Returns:
- if
true, thePlayer'sAutoStoreSettingis loaded, or iffalse, it is not loaded
-
getIfLoaded
Gets the player'sAutoStoreSettingif loaded.- Parameters:
uuid- the player'sUUID- Returns:
- the player's
AutoStoreSetting
-
getOrLoad
Gets or load the player'sAutoStoreSetting.- Parameters:
uuid- the player'sUUID- Returns:
- the player's
AutoStoreSetting - Throws:
Exception- if the error happened while loadingAutoStoreSetting
-
save
Saves theAutoStoreSetting.- Parameters:
setting- theAutoStoreSettingto save- Throws:
Exception- if the error happened while savingAutoStoreSetting
-