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 TypeMethodDescriptionvoidload(UUID uuid, EnderChestInventory enderChest) Loads a player's ender chest into the one the server hands over.voidsave(UUID uuid, EnderChestInventory enderChest) Saves the ender chest of a player.
-
Method Details
-
load
Loads a player's ender chest into the one the server hands over.- Parameters:
uuid- the player identityenderChest- an empty ender chest to fill with the saved one, left empty 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
-