(IMachineRecipeManager aRecipeManager, ItemStack aInput, NBTTagCompound aNBT, Object... aOutput)
| 3373 | } |
| 3374 | |
| 3375 | public static boolean addSimpleIC2MachineRecipe(IMachineRecipeManager aRecipeManager, ItemStack aInput, NBTTagCompound aNBT, Object... aOutput) { |
| 3376 | if (!MD.IC2.mLoaded || ST.invalid(aInput) || aOutput == null || aRecipeManager == null) return F; |
| 3377 | try { |
| 3378 | aOutput = Code.getWithoutNulls(aOutput).toArray(ZL); |
| 3379 | if (aOutput.length == 0) return F; |
| 3380 | OreDictItemData tOreName = OM.association_(aInput); |
| 3381 | if (aRecipeManager instanceof IMachineRecipeManagerExt) { |
| 3382 | if (tOreName != null && !tOreName.mBlackListed && !OreDictManager.INSTANCE.isBlacklisted(aInput)) { |
| 3383 | ((IMachineRecipeManagerExt)aRecipeManager).addRecipe((IRecipeInput)COMPAT_IC2.makeInput(tOreName.toString(), aInput.stackSize), aNBT, T, OreDictManager.INSTANCE.getStackArray(T, aOutput)); |
| 3384 | } else { |
| 3385 | ((IMachineRecipeManagerExt)aRecipeManager).addRecipe((IRecipeInput)COMPAT_IC2.makeInput(aInput), aNBT, T, OreDictManager.INSTANCE.getStackArray(T, aOutput)); |
| 3386 | } |
| 3387 | } else { |
| 3388 | if (tOreName != null && !tOreName.mBlackListed && !OreDictManager.INSTANCE.isBlacklisted(aInput)) { |
| 3389 | aRecipeManager.addRecipe((IRecipeInput)COMPAT_IC2.makeInput(tOreName.toString(), aInput.stackSize), aNBT, OreDictManager.INSTANCE.getStackArray(T, aOutput)); |
| 3390 | } else { |
| 3391 | aRecipeManager.addRecipe((IRecipeInput)COMPAT_IC2.makeInput(aInput), aNBT, OreDictManager.INSTANCE.getStackArray(T, aOutput)); |
| 3392 | } |
| 3393 | } |
| 3394 | } catch(Throwable e) {/**/} |
| 3395 | return T; |
| 3396 | } |
| 3397 | |
| 3398 | @SuppressWarnings("unchecked") |
| 3399 | public static boolean addSimpleIC2MachineRecipe(ItemStack aInput, @SuppressWarnings("rawtypes") Map aRecipeList, NBTTagCompound aNBT, Object... aOutput) { |
no test coverage detected