(boolean aDecreaseStacksizeBySuccess, boolean aDontCheckStackSizes, ItemStack... aInputs)
| 763 | } |
| 764 | |
| 765 | public boolean checkStacksEqual(boolean aDecreaseStacksizeBySuccess, boolean aDontCheckStackSizes, ItemStack... aInputs) { |
| 766 | boolean[] tChecked = new boolean[aInputs.length]; |
| 767 | for (ItemStack tInput : mInputs) if (ST.valid(tInput)) { |
| 768 | boolean temp = T; |
| 769 | for (int i = 0; i < aInputs.length; i++) if (!tChecked[i]) { |
| 770 | ItemStack aInput = aInputs[i]; |
| 771 | if (ST.valid(aInput)) { |
| 772 | if ((aDontCheckStackSizes || aInput.stackSize >= tInput.stackSize) && OreDictManager.INSTANCE.equal_(F, aInput, tInput, !tInput.hasTagCompound())) { |
| 773 | if (aDecreaseStacksizeBySuccess) aInput.stackSize -= tInput.stackSize; |
| 774 | tChecked[i] = T; |
| 775 | temp = F; |
| 776 | break; |
| 777 | } |
| 778 | } else { |
| 779 | tChecked[i] = T; |
| 780 | } |
| 781 | } |
| 782 | if (temp) return F; |
| 783 | } |
| 784 | return T; |
| 785 | } |
| 786 | |
| 787 | @Deprecated |
| 788 | public boolean isRecipeInputEqual(boolean aDecreaseStacksizeBySuccess, FluidStack[] aFluidInputs, ItemStack... aInputs) { |
no test coverage detected