Interface PlayerInventoryStorage
public interface PlayerInventoryStorage
Persistence backend for player inventories, following the same model as
PlayerDataStorage.- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionLoads the inventory of a player.voidsave(UUID uuid, PlayerInventory inventory) Saves the inventory of a player.
-
Method Details
-
load
Loads the inventory of a player.- Parameters:
uuid- the player identity- Returns:
- the saved inventory, or an empty one if the player never had one
- Throws:
IOException- if the inventory cannot be read- Since:
- 0.1.0
-
save
Saves the inventory of a player.- Parameters:
uuid- the player identityinventory- the inventory to save- Throws:
IOException- if the inventory cannot be written- Since:
- 0.1.0
-