Class ShopkeeperData

java.lang.Object
com.pixelmonmod.pixelmon.entities.npcs.registry.ShopkeeperData

public class ShopkeeperData extends Object
Server-side data defining a shopkeeper.
  • Field Details

  • Constructor Details

    • ShopkeeperData

      public ShopkeeperData(String name)
  • Method Details

    • addTexture

      public void addTexture(String texture)
    • addChat

      public void addChat(String hello, String goodbye)
    • addItem

      public void addItem(ShopItem item)
    • getRandomChatIndex

      public int getRandomChatIndex()
    • getRandomNameIndex

      public int getRandomNameIndex()
    • getRandomTexture

      public String getRandomTexture()
    • getItemList

      public ArrayList<ShopItemWithVariation> getItemList()
    • getItem

      public ShopItem getItem(String itemID)
    • getNextNameIndex

      public int getNextNameIndex(int nameIndex)
    • getNextTexture

      public String getNextTexture(String texture)
    • countNames

      public int countNames()
      Gets the number of different possible names that the shopkeeper has.
      Returns:
      The number of different possible names that the shopkeeper has.
    • getTextures

      public ArrayList<String> getTextures()
      Gets the shopkeeper's possible textures.
      Returns:
      The shopkeeper's possible textures.
    • addBiome

      public void addBiome(String biome)
    • getBiomes

      public ArrayList<String> getBiomes()