public class WauzShopItem
extends java.lang.Object
WauzShop
Modifier and Type | Field and Description |
---|---|
private static io.lumine.xikage.mythicmobs.items.ItemManager |
mythicMobs
Access to the MythicMobs API item manager.
|
private int |
shopItemAmount
The amount of the shop item.
|
private WauzCurrency |
shopItemCurrency
The currency of the price of the shop item.
|
private int |
shopItemPrice
The price of the shop item.
|
private int |
shopItemRelationExp
The relation exp gain on purchase of the shop item.
|
private org.bukkit.inventory.ItemStack |
shopItemStack
A stack of the shop item.
|
Constructor and Description |
---|
WauzShopItem(java.lang.String shopName,
int itemIndex)
Constructs a shop item, based on the shop file in the /WauzCore/ShopData folder.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
getInstance(org.bukkit.entity.Player player,
WauzShopDiscount discount,
boolean bought)
Generates a player specific instance of the shop item stack.
|
int |
getShopItemAmount() |
WauzCurrency |
getShopItemCurrency() |
int |
getShopItemPrice() |
int |
getShopItemRelationExp() |
org.bukkit.inventory.ItemStack |
getShopItemStack() |
private static io.lumine.xikage.mythicmobs.items.ItemManager mythicMobs
private org.bukkit.inventory.ItemStack shopItemStack
private int shopItemAmount
private int shopItemPrice
private WauzCurrency shopItemCurrency
private int shopItemRelationExp
public WauzShopItem(java.lang.String shopName, int itemIndex)
shopName
- The name of the shop this item can be bought in.itemIndex
- The number of the shop item.public org.bukkit.inventory.ItemStack getShopItemStack()
public int getShopItemAmount()
public int getShopItemPrice()
public WauzCurrency getShopItemCurrency()
public int getShopItemRelationExp()
public org.bukkit.inventory.ItemStack getInstance(org.bukkit.entity.Player player, WauzShopDiscount discount, boolean bought)
player
- The player who can buy the item.discount
- The discount on the price of the item.bought
- If the item was bought and therefore has no price anymore.