Interface ItemShopPrice

All Superinterfaces:
ShopPrice
All Known Subinterfaces:
SpawnerItemShopPrice

public interface ItemShopPrice extends ShopPrice
  • Method Details

    • getItemStacks

      ItemStack[] getItemStacks()
      Returns cloned itemstacks that will be taken from the player.

      The reason that this method returns an array is that other types may have multiple (such as ShopPriceType.SPAWNER_ITEM).

      Returns:
      The itemstacks that this price represents
    • setItemStack

      void setItemStack(ItemStack is)
      Replace the price item.
      Parameters:
      is - The new price item
      Throws:
      UnsupportedOperationException - When executing this for a type other than ShopPriceType.ITEM