Interface SpecialItemShopProduct
- All Superinterfaces:
ItemShopProduct, ShopProduct
Represents a special item being dropped.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable SpecialItemReturns the special item that will be given on purchase.Returns the id of the special item that will be given on purchase.voidsetSpecialItem(SpecialItem item) Set theSpecialItemthat shall be given on purchasevoidsetSpecialItemId(String specialItemId) Set the id of theSpecialItemthat shall be given.Methods inherited from interface ItemShopProduct
getGivingItems, getItemStacks, getItemStacks, setItemStackMethods inherited from interface ShopProduct
getAmount, getDisplayName, getDisplayName, getId, getItem, getType, give, give, isAutoWear, isUnbreakable, setAmount, setAutoWear, setUnbreakable
-
Method Details
-
getSpecialItem
Returns the special item that will be given on purchase.
Might benullwhen no special item has been registered with the given id. UsegetSpecialItem()to obtain the id of the special item.- Returns:
- The special item.
nullwhen 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
Set theSpecialItemthat shall be given on purchase- Parameters:
item- The new SpecialItem
-
setSpecialItemId
- Parameters:
specialItemId- The new id of the special item
-