public class ShopkeeperData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
id |
EnumShopKeeperType |
type |
Constructor and Description |
---|
ShopkeeperData(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addBiome(java.lang.String biome) |
void |
addChat(java.lang.String hello,
java.lang.String goodbye) |
void |
addItem(ShopItem item) |
void |
addTexture(java.lang.String texture) |
int |
countNames()
Gets the number of different possible names that the shopkeeper has.
|
java.util.ArrayList<java.lang.String> |
getBiomes() |
ShopItem |
getItem(java.lang.String itemID) |
java.util.ArrayList<ShopItemWithVariation> |
getItemList() |
int |
getNextNameIndex(int nameIndex) |
java.lang.String |
getNextTexture(java.lang.String texture) |
int |
getRandomChatIndex() |
int |
getRandomNameIndex() |
java.lang.String |
getRandomTexture() |
java.util.ArrayList<java.lang.String> |
getTextures()
Gets the shopkeeper's possible textures.
|
public java.lang.String id
public EnumShopKeeperType type
public void addTexture(java.lang.String texture)
public void addChat(java.lang.String hello, java.lang.String goodbye)
public void addItem(ShopItem item)
public int getRandomChatIndex()
public int getRandomNameIndex()
public java.lang.String getRandomTexture()
public java.util.ArrayList<ShopItemWithVariation> getItemList()
public ShopItem getItem(java.lang.String itemID)
public int getNextNameIndex(int nameIndex)
public java.lang.String getNextTexture(java.lang.String texture)
public int countNames()
public java.util.ArrayList<java.lang.String> getTextures()
public void addBiome(java.lang.String biome)
public java.util.ArrayList<java.lang.String> getBiomes()