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 Type
    Method
    Description
    void
    load(UUID uuid, EnderChestInventory enderChest)
    Loads a player's ender chest into the one the server hands over.
    void
    save(UUID uuid, EnderChestInventory enderChest)
    Saves the ender chest of a player.
  • Method Details

    • load

      void load(UUID uuid, EnderChestInventory enderChest) throws IOException
      Loads a player's ender chest into the one the server hands over.
      Parameters:
      uuid - the player identity
      enderChest - 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

      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