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
    • count

      public int count
    • minCount

      public int minCount
    • 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 com.badlogic.gdx.utils.Array<ItemStack> getSuitableItemsFromInventory()
      Returns:
      вещи из инвентаря, которые подходят. Не берет в учет кол-во