Interface AutoStoreSettingProvider
public interface AutoStoreSettingProvider
An interface to load/save
AutoStoreSetting
s.-
Method Summary
Modifier and TypeMethodDescription@Nullable AutoStoreSetting
getIfLoaded
(@NotNull UUID uuid) Gets the player'sAutoStoreSetting
if loaded.@NotNull AutoStoreSetting
Gets or load the player'sAutoStoreSetting
.boolean
Checks if theAutoStoreSetting
of the specifiedPlayer
is loaded.void
save
(@NotNull AutoStoreSetting setting) Saves theAutoStoreSetting
.
-
Method Details
-
isLoaded
Checks if theAutoStoreSetting
of the specifiedPlayer
is loaded.- Parameters:
uuid
- thePlayer
'sUUID
to check- Returns:
- if
true
, thePlayer
'sAutoStoreSetting
is loaded, or iffalse
, it is not loaded
-
getIfLoaded
Gets the player'sAutoStoreSetting
if 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
- theAutoStoreSetting
to save- Throws:
Exception
- if the error happened while savingAutoStoreSetting
-