Interface SpecialItemShopProduct

All Superinterfaces:
ItemShopProduct, ShopProduct

public interface SpecialItemShopProduct extends ItemShopProduct
  • Method Details

    • getSpecialItem

      @Nullable @Nullable SpecialItem getSpecialItem()
      Returns the special item that will be given on purchase.
      Might be null when no special item has been registered with the given id. Use getSpecialItem() to obtain the id of the special item.
      Returns:
      The special item. null when it hasn't been registered yet
    • getSpecialItemId

      String getSpecialItemId()
      Returns the id of the special item that will be given on purchase.
      Returns:
      The id of the special item
    • setSpecialItem

      void setSpecialItem(SpecialItem item)
      Set the SpecialItem that shall be given on purchase
      Parameters:
      item - The new SpecialItem
    • setSpecialItemId

      void setSpecialItemId(String specialItemId)
      Set the id of the SpecialItem that shall be given.
      Preferbly should be SpecialItem.getId().
      Parameters:
      specialItemId - The new id of the special item