MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / removeSimpleIC2MachineRecipe

Method removeSimpleIC2MachineRecipe

src/main/java/gregapi/util/UT.java:3355–3373  ·  view source on GitHub ↗
(ItemStack aInput, @SuppressWarnings("rawtypes") Map aRecipeList, ItemStack aOutput)

Source from the content-addressed store, hash-verified

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;

Callers 7

pulverizingMethod · 0.95
ic2_maceratorMethod · 0.95
ic2_extractorMethod · 0.95
ic2_compressorMethod · 0.95
ic2_orewasherMethod · 0.95
ic2_centrifugeMethod · 0.95
onPostLoadMethod · 0.95

Calls 9

invalidMethod · 0.95
get_Method · 0.95
equalMethod · 0.95
getMethod · 0.95
removeMethod · 0.65
isEmptyMethod · 0.45
iteratorMethod · 0.45
nextMethod · 0.45
matchesMethod · 0.45

Tested by

no test coverage detected