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