Package com.prineside.tdi2
Class CraftRecipe.Ingredient
java.lang.Object
com.prineside.tdi2.CraftRecipe.Ingredient
- Enclosing class:
 - CraftRecipe
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionintRequired number of items, pre GV discountItem[]booleanint[]Item parameters (depends on item tyoe), idx[n+0] -> required value[n+1]intMin amount after discount is applied - 
Constructor Summary
ConstructorsConstructorDescriptionIngredient(ItemType itemType, int count) Ingredient(ItemType itemType, int count, int[] itemParams) Ingredient(ItemType itemType, int count, RarityType itemRarity) Ingredient(ItemType itemType, int count, RarityType itemRarity, int[] itemParams)  - 
Method Summary
 
- 
Field Details
- 
itemType
 - 
itemRarity
 - 
itemParams
public int[] itemParamsItem parameters (depends on item tyoe), idx[n+0] -> required value[n+1] - 
count
public int countRequired number of items, pre GV discount - 
minCount
public int minCountMin amount after discount is applied - 
ignoresDiscounts
public boolean ignoresDiscounts - 
exampleItems
 
 - 
 - 
Constructor Details
- 
Ingredient
 - 
Ingredient
 - 
Ingredient
 - 
Ingredient
 
 - 
 - 
Method Details
- 
getExampleItems
 - 
getCountWithGVs
public int getCountWithGVs() - 
fits
 - 
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)
 
 
 -