Class RecipeManager
java.lang.Object
zombie.inventory.RecipeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
DoesUseItemUp
(String itemToUse, Recipe recipe) Deprecated.static boolean
DoesWipeUseDelta
(String itemToUse, String itemToMake) Deprecated.static ArrayList
<EvolvedRecipe> static ArrayList
<InventoryItem> getAvailableItemsAll
(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) static ArrayList
<InventoryItem> getAvailableItemsNeeded
(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) static Recipe
getDismantleRecipeFor
(String item) static ArrayList
<EvolvedRecipe> getEvolvedRecipe
(InventoryItem baseItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers, boolean need1ingredient) static int
static InventoryItem
GetMovableRecipeTool
(boolean isPrimary, Recipe recipe, InventoryItem selectedItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers) static int
getNumberOfTimesRecipeCanBeDone
(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem) static ArrayList
<InventoryItem> getSourceItemsAll
(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) static ArrayList
<InventoryItem> getSourceItemsNeeded
(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) getUniqueRecipeItems
(InventoryItem item, IsoGameCharacter chr, ArrayList<ItemContainer> containers) static boolean
HasAllRequiredItems
(Recipe recipe, IsoGameCharacter chr, InventoryItem selectedItem, ArrayList<ItemContainer> containers) static boolean
hasHeat
(Recipe recipe, InventoryItem item, ArrayList<ItemContainer> containers, IsoGameCharacter chr) static boolean
isAllItemsUsableRotten
(Recipe recipe, IsoGameCharacter isoGameCharacter, InventoryItem inventoryItem1, ArrayList<ItemContainer> arrayList) static boolean
IsItemDestroyed
(String itemToUse, Recipe recipe) Deprecated.static boolean
IsRecipeValid
(Recipe recipe, IsoGameCharacter chr, InventoryItem item, ArrayList<ItemContainer> containers) static void
static ArrayList
<InventoryItem> PerformMakeItem
(Recipe recipe, InventoryItem inventoryItem, IsoGameCharacter isoGameCharacter, ArrayList<ItemContainer> arrayList0) static void
printDebugRecipeValid
(Recipe recipe, IsoGameCharacter isoGameCharacter, InventoryItem inventoryItem, ArrayList<ItemContainer> arrayList) static void
static float
UseAmount
(String sourceFullType, Recipe recipe, IsoGameCharacter chr) Deprecated.static boolean
validateHasHeat
(Recipe recipe, InventoryItem inventoryItem2, ArrayList<ItemContainer> arrayList, IsoGameCharacter isoGameCharacter) static boolean
validateRecipeContainsSourceItem
(Recipe recipe, InventoryItem inventoryItem)
-
Constructor Details
-
RecipeManager
public RecipeManager()
-
-
Method Details
-
ScriptsLoaded
public static void ScriptsLoaded() -
LoadedAfterLua
public static void LoadedAfterLua() -
getKnownRecipesNumber
-
getUniqueRecipeItems
public static ArrayList<Recipe> getUniqueRecipeItems(InventoryItem item, IsoGameCharacter chr, ArrayList<ItemContainer> containers) -
IsRecipeValid
public static boolean IsRecipeValid(Recipe recipe, IsoGameCharacter chr, InventoryItem item, ArrayList<ItemContainer> containers) -
printDebugRecipeValid
public static void printDebugRecipeValid(Recipe recipe, IsoGameCharacter isoGameCharacter, InventoryItem inventoryItem, ArrayList<ItemContainer> arrayList) -
validateRecipeContainsSourceItem
-
validateHasHeat
public static boolean validateHasHeat(Recipe recipe, InventoryItem inventoryItem2, ArrayList<ItemContainer> arrayList, IsoGameCharacter isoGameCharacter) -
getAvailableItemsAll
public static ArrayList<InventoryItem> getAvailableItemsAll(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getAvailableItemsNeeded
public static ArrayList<InventoryItem> getAvailableItemsNeeded(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getSourceItemsAll
public static ArrayList<InventoryItem> getSourceItemsAll(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getSourceItemsNeeded
public static ArrayList<InventoryItem> getSourceItemsNeeded(Recipe recipe, int sourceIndex, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem, ArrayList<InventoryItem> ignoreItems) -
getNumberOfTimesRecipeCanBeDone
public static int getNumberOfTimesRecipeCanBeDone(Recipe recipe, IsoGameCharacter chr, ArrayList<ItemContainer> containers, InventoryItem selectedItem) -
PerformMakeItem
public static ArrayList<InventoryItem> PerformMakeItem(Recipe recipe, InventoryItem inventoryItem, IsoGameCharacter isoGameCharacter, ArrayList<ItemContainer> arrayList0) -
getAllEvolvedRecipes
-
getEvolvedRecipe
public static ArrayList<EvolvedRecipe> getEvolvedRecipe(InventoryItem baseItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers, boolean need1ingredient) -
getDismantleRecipeFor
-
GetMovableRecipeTool
public static InventoryItem GetMovableRecipeTool(boolean isPrimary, Recipe recipe, InventoryItem selectedItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers) -
HasAllRequiredItems
public static boolean HasAllRequiredItems(Recipe recipe, IsoGameCharacter chr, InventoryItem selectedItem, ArrayList<ItemContainer> containers) -
isAllItemsUsableRotten
public static boolean isAllItemsUsableRotten(Recipe recipe, IsoGameCharacter isoGameCharacter, InventoryItem inventoryItem1, ArrayList<ItemContainer> arrayList) -
hasHeat
public static boolean hasHeat(Recipe recipe, InventoryItem item, ArrayList<ItemContainer> containers, IsoGameCharacter chr) -
IsItemDestroyed
Deprecated. -
UseAmount
@Deprecated public static float UseAmount(String sourceFullType, Recipe recipe, IsoGameCharacter chr) Deprecated. -
DoesWipeUseDelta
Deprecated. -
DoesUseItemUp
Deprecated.
-