Class RecipeManager
java.lang.Object
zombie.inventory.RecipeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDoesUseItemUp(String itemToUse, Recipe recipe) Deprecated.static booleanDoesWipeUseDelta(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 RecipegetDismantleRecipeFor(String item) static ArrayList<EvolvedRecipe> getEvolvedRecipe(InventoryItem baseItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers, boolean need1ingredient) static intstatic InventoryItemGetMovableRecipeTool(boolean isPrimary, Recipe recipe, InventoryItem selectedItem, IsoGameCharacter chr, ArrayList<ItemContainer> containers) static intgetNumberOfTimesRecipeCanBeDone(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 booleanHasAllRequiredItems(Recipe recipe, IsoGameCharacter chr, InventoryItem selectedItem, ArrayList<ItemContainer> containers) static booleanhasHeat(Recipe recipe, InventoryItem item, ArrayList<ItemContainer> containers, IsoGameCharacter chr) static booleanisAllItemsUsableRotten(Recipe recipe, IsoGameCharacter character, InventoryItem item1, ArrayList<ItemContainer> arrayList) static booleanIsItemDestroyed(String itemToUse, Recipe recipe) Deprecated.static booleanIsRecipeValid(Recipe recipe, IsoGameCharacter chr, InventoryItem item, ArrayList<ItemContainer> containers) static voidstatic ArrayList<InventoryItem> PerformMakeItem(Recipe recipe, InventoryItem item, IsoGameCharacter character, ArrayList<ItemContainer> arrayList0) static voidprintDebugRecipeValid(Recipe recipe, IsoGameCharacter character, InventoryItem item, ArrayList<ItemContainer> arrayList) static voidstatic floatUseAmount(String sourceFullType, Recipe recipe, IsoGameCharacter chr) Deprecated.static booleanvalidateHasHeat(Recipe recipe, InventoryItem item2, ArrayList<ItemContainer> arrayList, IsoGameCharacter character) static booleanvalidateRecipeContainsSourceItem(Recipe recipe, InventoryItem item)
-
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 character, InventoryItem item, ArrayList<ItemContainer> arrayList) -
validateRecipeContainsSourceItem
-
validateHasHeat
public static boolean validateHasHeat(Recipe recipe, InventoryItem item2, ArrayList<ItemContainer> arrayList, IsoGameCharacter character) -
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 item, IsoGameCharacter character, 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 character, InventoryItem item1, 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.
-