Interface ItemShopPrice
- All Superinterfaces:
ShopPrice
- All Known Subinterfaces:
SpawnerItemShopPrice
-
Method Summary
Modifier and TypeMethodDescriptionReturns cloned itemstacks that will be taken from the player.void
Replace the price item.Methods inherited from interface de.marcely.bedwars.api.game.shop.price.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
Replace the price item.- Parameters:
is
- The new price item- Throws:
UnsupportedOperationException
- When executing this for a type other thanShopPriceType.ITEM
-