public class WauzShop
extends java.lang.Object
WauzShopItem
,
ShopMenu
Modifier and Type | Field and Description |
---|---|
private boolean |
isGlobal
If the shop is global (gamemode independent).
|
private int |
itemAmount
The amount of items in the shop.
|
private java.lang.String |
shopDisplayName
The display name of the shop.
|
private java.util.List<WauzShopItem> |
shopItems
All the items the shop offers.
|
private static java.util.Map<java.lang.String,WauzShop> |
shopMap
A map of shops, indexed by name.
|
private java.lang.String |
shopName
The name of the shop.
|
Constructor and Description |
---|
WauzShop(java.lang.String shopName)
Constructs a shop, based on the shop file in the /WauzCore/ShopData folder.
|
Modifier and Type | Method and Description |
---|---|
int |
getItemAmount() |
static WauzShop |
getShop(java.lang.String shopName) |
java.lang.String |
getShopDisplayName() |
java.util.List<WauzShopItem> |
getShopItems() |
java.lang.String |
getShopName() |
static void |
init()
Initializes all shops from the configs and fills the internal shop map.
|
boolean |
isGlobal() |
private static java.util.Map<java.lang.String,WauzShop> shopMap
private java.lang.String shopName
private java.lang.String shopDisplayName
private boolean isGlobal
private int itemAmount
private java.util.List<WauzShopItem> shopItems
public WauzShop(java.lang.String shopName)
shopName
- The name of the shop.public static void init()
ShopConfigurator.getShopNameList()
public static WauzShop getShop(java.lang.String shopName)
shopName
- A shop name.public java.lang.String getShopName()
public java.lang.String getShopDisplayName()
public boolean isGlobal()
public int getItemAmount()
public java.util.List<WauzShopItem> getShopItems()