Interface PlayerEnderChestStorage


public interface PlayerEnderChestStorage
Persistence backend for ender chests, following the same model as PlayerInventoryStorage and PlayerDataStorage.
Since:
0.1.0
  • 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

      void save(UUID uuid, EnderChestInventory enderChest) throws IOException
      Saves the ender chest of a player.
      Parameters:
      uuid - the player identity
      enderChest - the ender chest to save
      Throws:
      IOException - if the ender chest cannot be written
      Since:
      0.1.0