Interface ICachedItem


public interface ICachedItem
Represents a cached item in the shop, keeping track of the associated category content and player's tier.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the tier of the cached item.
    void
    updateItem(int slot, org.bukkit.entity.Player p)
    Update the item in the specified slot for the given player.
    void
    upgrade(int slot)
    Upgrade the cached item in the specified slot.
  • Method Details

    • updateItem

      void updateItem(int slot, org.bukkit.entity.Player p)
      Update the item in the specified slot for the given player.
      Parameters:
      slot - The slot to update the item in.
      p - The player for whom to update the item.
    • getTier

      int getTier()
      Get the tier of the cached item.
      Returns:
      The tier of the cached item.
    • upgrade

      void upgrade(int slot)
      Upgrade the cached item in the specified slot.
      Parameters:
      slot - The slot of the item to upgrade.