Class CraftRecipeManager
java.lang.Object
zombie.entity.components.crafting.recipe.CraftRecipeManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
consumeInputFromResource
(InputScript inputScript, Resource resource, boolean boolean0, CraftRecipeData.CacheData cacheData) protected static boolean
consumeInputItem
(InputScript inputScript, Resource resource, boolean boolean0, CraftRecipeData.CacheData cacheData) protected static boolean
consumeInputItem
(InputScript inputScript0, InventoryItem inventoryItem, boolean boolean0, CraftRecipeData.CacheData cacheData) protected static boolean
createOutputItem
(OutputScript outputScript0, Item item, boolean boolean0, CraftRecipeData.CacheData cacheData) protected static boolean
createOutputToResource
(OutputScript outputScript, Resource resource, boolean boolean0, CraftRecipeData.CacheData cacheData) static void
static List
<CraftRecipe> filterRecipeList
(String string, List<CraftRecipe> list) static List
<CraftRecipe> filterRecipeList
(String string0, List<CraftRecipe> list0, List<CraftRecipe> list1) static String
static ArrayList
<InventoryItem> getAllItemsFromContainers
(ArrayList<ItemContainer> arrayList1, ArrayList<InventoryItem> arrayList0) static ArrayList
<InputScript> getAllValidInputScriptsForItem
(CraftRecipe craftRecipe, InventoryItem inventoryItem) static ArrayList
<InventoryItem> getAllValidItemsForRecipe
(CraftRecipe craftRecipe, ArrayList<InventoryItem> arrayList0, ArrayList<InventoryItem> arrayList1) static int
getAutoCraftCountItems
(CraftRecipe craftRecipe, ArrayList<InventoryItem> arrayList) static CraftRecipeData
getCraftDataForPlayer
(IsoPlayer isoPlayer) static List
<CraftRecipe> getRecipesForTag
(String string) static ArrayList
<CraftRecipe> getUniqueRecipeItems
(InventoryItem inventoryItem, IsoGameCharacter isoGameCharacter, ArrayList<ItemContainer> arrayList) static InputScript
getValidInputScriptForItem
(CraftRecipe craftRecipe, InventoryItem inventoryItem) static boolean
hasPlayerLearnedRecipe
(CraftRecipe craftRecipe, IsoGameCharacter isoGameCharacter) static boolean
hasPlayerRequiredSkill
(CraftRecipe.RequiredSkill requiredSkill, IsoGameCharacter isoGameCharacter) static void
Init()
static boolean
isItemToolForRecipe
(CraftRecipe craftRecipe, InventoryItem inventoryItem) static boolean
isItemValidForInputScript
(InputScript inputScript, InventoryItem inventoryItem) static boolean
isItemValidForRecipe
(CraftRecipe craftRecipe, InventoryItem inventoryItem) static boolean
isValidRecipeForCharacter
(CraftRecipe craftRecipe, IsoGameCharacter isoGameCharacter, CraftRecipeMonitor craftRecipeMonitor) static void
static List
<CraftRecipe> populateRecipeList
(String string, List<CraftRecipe> list, boolean boolean0) static List
<CraftRecipe> populateRecipeList
(String string, List<CraftRecipe> list0, List<CraftRecipe> list1, boolean boolean0) static List
<CraftRecipe> queryRecipes
(String string) static void
Reset()
static String
sanitizeTagQuery
(String string)
-
Constructor Details
-
CraftRecipeManager
public CraftRecipeManager()
-
-
Method Details
-
Reset
public static void Reset() -
Init
public static void Init() -
FormatAndRegisterRecipeTagsQuery
-
sanitizeTagQuery
-
getRecipesForTag
-
getAllRecipeTags
-
getTagGroups
-
debugPrintTagManager
public static void debugPrintTagManager() -
debugPrintTagManagerLines
-
LogAllRecipesToFile
public static void LogAllRecipesToFile() -
queryRecipes
-
populateRecipeList
public static List<CraftRecipe> populateRecipeList(String string, List<CraftRecipe> list, boolean boolean0) -
populateRecipeList
public static List<CraftRecipe> populateRecipeList(String string, List<CraftRecipe> list0, List<CraftRecipe> list1, boolean boolean0) -
filterRecipeList
-
filterRecipeList
public static List<CraftRecipe> filterRecipeList(String string0, List<CraftRecipe> list0, List<CraftRecipe> list1) -
getCraftDataForPlayer
-
getAllItemsFromContainers
public static ArrayList<InventoryItem> getAllItemsFromContainers(ArrayList<ItemContainer> arrayList1, ArrayList<InventoryItem> arrayList0) -
getAllValidItemsForRecipe
public static ArrayList<InventoryItem> getAllValidItemsForRecipe(CraftRecipe craftRecipe, ArrayList<InventoryItem> arrayList0, ArrayList<InventoryItem> arrayList1) -
getValidInputScriptForItem
public static InputScript getValidInputScriptForItem(CraftRecipe craftRecipe, InventoryItem inventoryItem) -
getAllValidInputScriptsForItem
public static ArrayList<InputScript> getAllValidInputScriptsForItem(CraftRecipe craftRecipe, InventoryItem inventoryItem) -
isItemToolForRecipe
-
isItemValidForRecipe
-
isItemValidForInputScript
public static boolean isItemValidForInputScript(InputScript inputScript, InventoryItem inventoryItem) -
isValidRecipeForCharacter
public static boolean isValidRecipeForCharacter(CraftRecipe craftRecipe, IsoGameCharacter isoGameCharacter, CraftRecipeMonitor craftRecipeMonitor) -
hasPlayerLearnedRecipe
public static boolean hasPlayerLearnedRecipe(CraftRecipe craftRecipe, IsoGameCharacter isoGameCharacter) -
hasPlayerRequiredSkill
public static boolean hasPlayerRequiredSkill(CraftRecipe.RequiredSkill requiredSkill, IsoGameCharacter isoGameCharacter) -
getAutoCraftCountItems
public static int getAutoCraftCountItems(CraftRecipe craftRecipe, ArrayList<InventoryItem> arrayList) -
consumeInputFromResource
protected static boolean consumeInputFromResource(InputScript inputScript, Resource resource, boolean boolean0, CraftRecipeData.CacheData cacheData) -
consumeInputItem
protected static boolean consumeInputItem(InputScript inputScript, Resource resource, boolean boolean0, CraftRecipeData.CacheData cacheData) -
consumeInputItem
protected static boolean consumeInputItem(InputScript inputScript0, InventoryItem inventoryItem, boolean boolean0, CraftRecipeData.CacheData cacheData) -
createOutputToResource
protected static boolean createOutputToResource(OutputScript outputScript, Resource resource, boolean boolean0, CraftRecipeData.CacheData cacheData) -
createOutputItem
protected static boolean createOutputItem(OutputScript outputScript0, Item item, boolean boolean0, CraftRecipeData.CacheData cacheData) -
getUniqueRecipeItems
public static ArrayList<CraftRecipe> getUniqueRecipeItems(InventoryItem inventoryItem, IsoGameCharacter isoGameCharacter, ArrayList<ItemContainer> arrayList)
-