Interface BasicItemShopProduct
- All Superinterfaces:
ItemShopProduct, ShopProduct
Represents a regular item being dropped.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the dynamic variant of the product item.voidReplace the product item.voidReplace the product item.Methods inherited from interface ItemShopProduct
getGivingItems, getItemStacks, getItemStacksMethods inherited from interface ShopProduct
getAmount, getDisplayName, getDisplayName, getId, getItem, getType, give, give, isAutoWear, isUnbreakable, setAmount, setAutoWear, setUnbreakable
-
Method Details
-
setItemStack
Replace the product item.- Specified by:
setItemStackin interfaceItemShopProduct- Parameters:
is- The new product item- See Also:
-
getDynamicItemStack
DynamicItemStack getDynamicItemStack()Returns the dynamic variant of the product item.Items may include PAPI placeholders which may be per player. Do note that this method will return something, even if the item actually has no placeholders and isn't dynamic.
- Returns:
- The dynamic representation of the item
-
setDynamicItemStack
Replace the product item.- Parameters:
is- The new product item
-