Interface ItemShopPrice
- All Superinterfaces:
ShopPrice
- All Known Subinterfaces:
BasicItemShopPrice, SpawnerItemShopPrice
Represents a type of price that represents items.
-
Method Summary
Modifier and TypeMethodDescriptionReturns cloned itemstacks that will be taken from the player.voidDeprecated.This interface no longer represents a basic item on its ownMethods inherited from interface ShopPrice
getAmount, getDisplayItem, getDisplayName, getDisplayName, getDisplayName, getDisplayName, getGeneralAmount, getHoldingAmount, getHoldingAmount, getItem, getMissingAmount, getMissingAmount, getType, setGeneralAmount, take, take
-
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
Deprecated.This interface no longer represents a basic item on its ownReplace the price item.- Parameters:
is- The new price item- Throws:
UnsupportedOperationException- When executing this for a type other thanShopPriceType.ITEM- See Also:
-