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

Method rem_smelting

src/main/java/gregapi/data/RM.java:823–872  ·  view source on GitHub ↗
(ItemStack aInput)

Source from the content-addressed store, hash-verified

821 }
822
823 @SuppressWarnings({"rawtypes", "unchecked"})
824 public static boolean rem_smelting(ItemStack aInput) {
825 if (ST.invalid(aInput)) return F;
826 ItemStack tPyrotheum = OP.dust.mat(MT.Pyrotheum, 1);
827 if (ST.valid(tPyrotheum)) CR.remove(aInput, tPyrotheum);
828 boolean rReturn = F;
829 Iterator<Entry<ItemStack, ItemStack>> tIterator = FurnaceRecipes.smelting().getSmeltingList().entrySet().iterator();
830 while (tIterator.hasNext()) if (ST.equal(aInput, tIterator.next().getKey(), T)) {
831 tIterator.remove();
832 rReturn = T;
833 }
834 if (MD.EtFu.mLoaded) {
835 boolean tSuccess = F;
836
837 try {
838 SmokerRecipes .smelting().removeRecipe(aInput);
839 BlastFurnaceRecipes.smelting().removeRecipe(aInput);
840 tSuccess = T;
841 } catch(Throwable e) {
842 ERR.println("If you did not update Et Futurum Requiem, maybe you should.");
843 e.printStackTrace(ERR);
844 }
845
846 if (!tSuccess) try {
847 Map
848 tMap = ((Map)UT.Reflection.getFieldContent(SmokerRecipes.smelting(), "smeltingList", T, D1));
849 if (tMap != null) {
850 tIterator = tMap.entrySet().iterator();
851 while (tIterator.hasNext()) if (ST.equal(aInput, tIterator.next().getKey(), T)) {
852 tIterator.remove();
853 rReturn = T;
854 }
855 tSuccess = T;
856 }
857 tMap = ((Map)UT.Reflection.getFieldContent(BlastFurnaceRecipes.smelting(), "smeltingList", T, D1));
858 if (tMap != null) {
859 tIterator = tMap.entrySet().iterator();
860 while (tIterator.hasNext()) if (ST.equal(aInput, tIterator.next().getKey(), T)) {
861 tIterator.remove();
862 rReturn = T;
863 }
864 tSuccess = T;
865 }
866 } catch(Throwable e) {
867 ERR.println("If you did not update Et Futurum Requiem, maybe you should.");
868 e.printStackTrace(ERR);
869 }
870 }
871 return rReturn;
872 }
873
874 @SuppressWarnings({"rawtypes", "unchecked"})
875 public static boolean rem_smelting(ItemStack aInput, ItemStack aOutput) {

Callers 10

add_smeltingMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
onOreRegistrationMethod · 0.95
runMethod · 0.95
onOreRegistrationMethod · 0.95
onOreRegistrationMethod · 0.95

Calls 11

invalidMethod · 0.95
validMethod · 0.95
removeMethod · 0.95
equalMethod · 0.95
matMethod · 0.80
removeRecipeMethod · 0.80
printlnMethod · 0.80
getFieldContentMethod · 0.80
removeMethod · 0.65
iteratorMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected