(ItemStack aInput, @SuppressWarnings("rawtypes") Map aRecipeList, ItemStack aOutput)
| 3353 | } |
| 3354 | |
| 3355 | public static synchronized boolean removeSimpleIC2MachineRecipe(ItemStack aInput, @SuppressWarnings("rawtypes") Map aRecipeList, ItemStack aOutput) { |
| 3356 | if (!MD.IC2.mLoaded || (ST.invalid(aInput) && ST.invalid(aOutput)) || aRecipeList == null || aRecipeList.isEmpty()) return F; |
| 3357 | boolean rReturn = F; |
| 3358 | @SuppressWarnings("unchecked") |
| 3359 | Iterator<Map.Entry<IRecipeInput, RecipeOutput>> tIterator = aRecipeList.entrySet().iterator(); |
| 3360 | aOutput = OM.get_(aOutput); |
| 3361 | while (tIterator.hasNext()) { |
| 3362 | Map.Entry<IRecipeInput, RecipeOutput> tEntry = tIterator.next(); |
| 3363 | if (aInput == null || tEntry.getKey().matches(aInput)) { |
| 3364 | List<ItemStack> tList = tEntry.getValue().items; |
| 3365 | if (tList != null) for (ItemStack tOutput : tList) if (ST.invalid(aOutput) || ST.equal(OM.get(tOutput), aOutput)) { |
| 3366 | tIterator.remove(); |
| 3367 | rReturn = T; |
| 3368 | break; |
| 3369 | } |
| 3370 | } |
| 3371 | } |
| 3372 | return rReturn; |
| 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; |
no test coverage detected