RecipeUtills

"This Article is Locked because all information on this page is official if you would like to make an edit to this page please message me about the change you'd like to make, including an example if it is reasonably possible and I will get back to you."

This class is used when compairing or converting Arrays, ArrayLists and un-identified Objects.

= check =

boolean containsObjList(...)
checks if the target ArrayList> contains an ArrayList of value. If ordered is true then the method will check if the contents are in the same ordered. Otherwise the method will only check if the ArrayLists are the same size and contain the same Objects, or in the case of comparing an ItemStack and a String it will check if the Ore Dictionary has an ItemStack of the same type registered under the given String.

boolean containsObjArray(...)
checks if the target ArrayList contains a value of Object[]. Works on the same logic as containsObjList(..), with the excepton of looking for Object[]s instead of ArrayLists.

boolean containsObject(...)
checks if the target ArrayList contains a value of Object. Woks on the same logic as containsObjArray(...) and conatinsObjList(...).

boolean objListsEqual(...)
Checks if ArrayList value, and ArrayList target are the same. If exactMatch is false then the order of the ArrayLists will be ignored.

= retrieve =

int getObjListIndex(...)
Finds the index of the first instance of ArrayList value in the ArrayList> target. If ordered is false then the order of ArrayList value will be ignored. When comparing a ItemStack and String this method will check if the ItemStack is registered in the Ore Dictionary under the String. If no match is found the method will return -1.

int getObjArrayLIndex(...)
Finds the first instance of Object[] value in ArrayList target. Works on the same logic as getObjListIndex(...).

int getObjIndex
Finds the first instance of Object value in ArrayList target. works on the same logic as getObjListIndex(...), and getObjArrayIndex(...).

= convert =

ArrayList arrayToList(...)
converts the given Object[] value to an ArrayList containing the same values in the same order.

ArrayList intToList(...)
converts a int[] to an ArrayList containing the same values in the same order

ArrayList<Object> shapedToObjList(...)
converts a shaped recipe input to a standard input ArrayList<Object>.