Class CraftRecipe.Ingredient

java.lang.Object
com.prineside.tdi2.CraftRecipe.Ingredient
Enclosing class:
CraftRecipe

public static class CraftRecipe.Ingredient extends Object
  • Field Details

    • itemType

      public ItemType itemType
    • itemRarity

      public RarityType itemRarity
    • itemParams

      public int[] itemParams
      Item parameters (depends on item tyoe), idx[n+0] -> required value[n+1]
    • count

      public int count
      Required number of items, pre GV discount
    • minCount

      public int minCount
      Min amount after discount is applied
    • ignoresDiscounts

      public boolean ignoresDiscounts
    • exampleItems

      public Item[] exampleItems
  • Constructor Details

    • Ingredient

      public Ingredient(ItemType itemType, int count, RarityType itemRarity)
    • Ingredient

      public Ingredient(ItemType itemType, int count, RarityType itemRarity, int[] itemParams)
    • Ingredient

      public Ingredient(ItemType itemType, int count, int[] itemParams)
    • Ingredient

      public Ingredient(ItemType itemType, int count)
  • Method Details

    • getExampleItems

      public Item[] getExampleItems()
    • getCountWithGVs

      public int getCountWithGVs()
    • fits

      public boolean fits(Item item)
    • getSuitableItemsFromInventory

      public Array<ItemStack> getSuitableItemsFromInventory()
      Returns:
      items from the inventory which fit the requirement. Not accounts for item count (there may be not enough items, but they are in the inventory)