Interface InventoriesPlayer

All Superinterfaces:
org.bukkit.event.Listener, fr.maxlego08.menu.zcore.utils.storage.Savable

public interface InventoriesPlayer extends org.bukkit.event.Listener, fr.maxlego08.menu.zcore.utils.storage.Savable

Management of player inventories

  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve the player's inventory if it exists
    void
    giveInventory(org.bukkit.entity.Player player)
    Allows to give the inventory back to the player
    boolean
    Check if the player has an inventory saved
    void
    storeInventory(org.bukkit.entity.Player player)
    Saves the player's inventory to be stored

    Methods inherited from interface fr.maxlego08.menu.zcore.utils.storage.Savable

    load, save
  • Method Details

    • storeInventory

      void storeInventory(org.bukkit.entity.Player player)
      Saves the player's inventory to be stored
      Parameters:
      player - Player
    • giveInventory

      void giveInventory(org.bukkit.entity.Player player)
      Allows to give the inventory back to the player
      Parameters:
      player - Player
    • hasSavedInventory

      boolean hasSavedInventory(UUID uniqueId)
      Check if the player has an inventory saved
      Parameters:
      uniqueId - Player UUID
      Returns:
      boolean
    • getPlayerInventory

      Optional<InventoryPlayer> getPlayerInventory(UUID uniqueId)
      Retrieve the player's inventory if it exists
      Parameters:
      uniqueId - Player UUID
      Returns:
      optional