MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / genericycle

Method genericycle

src/main/java/gregapi/data/RM.java:185–191  ·  view source on GitHub ↗
(ItemStack... aStacks)

Source from the content-addressed store, hash-verified

183 return RM.Generifier.addRecipe1(F, T, F, F, F, 0, 1, aStack1, aStack2) != null;
184 }
185 public static boolean genericycle(ItemStack... aStacks) {
186 ArrayListNoNulls<ItemStack> aStackList = ST.arraylist(aStacks);
187 for (int i = 0; i < aStackList.size(); i++) if (ST.invalid(aStackList.get(i))) aStackList.remove(i--);
188 if (aStackList.size() < 2) return F;
189 for (int i = 0; i < aStackList.size(); i++) generify(aStackList.get(i), aStackList.get((i+1) % aStackList.size()));
190 return T;
191 }
192
193 public static boolean generify(FluidStack aFluid1, FluidStack aFluid2) {
194 if (aFluid1 == null || aFluid2 == null) return F;

Callers 3

onPostLoadMethod · 0.95
onPostLoadMethod · 0.95
runMethod · 0.95

Calls 8

arraylistMethod · 0.95
invalidMethod · 0.95
generifyMethod · 0.95
invalidMethod · 0.95
getMethod · 0.95
getMethod · 0.65
removeMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected