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

Method has

src/main/java/gregapi/util/CR.java:591–596  ·  view source on GitHub ↗

Checks if this Item has a Crafting Recipe. @param aOutput The output of the Recipe. @return if it has found at least one Recipe.

(ItemStack aOutput)

Source from the content-addressed store, hash-verified

589 * @return if it has found at least one Recipe.
590 */
591 public static boolean has(ItemStack aOutput) {
592 if (ST.invalid(aOutput)) return F;
593 List<IRecipe> tList = list();
594 for (int i = 0; i < tList.size(); i++) if (ST.equal(OM.get(tList.get(i).getRecipeOutput()), aOutput, T)) return T;
595 return F;
596 }
597
598 /**
599 * Removes a Crafting Recipe.

Callers 15

hasMethod · 0.95
onPostLoadMethod · 0.95
canOutputMethod · 0.45
checkRecipeMethod · 0.45
tapDrainMethod · 0.45
nozzleDrainMethod · 0.45
doOutputFluidsMethod · 0.45
onServerTickPreMethod · 0.45
distributeMethod · 0.45
breakBlockMethod · 0.45
addToolTipsMethod · 0.45

Calls 7

invalidMethod · 0.95
listMethod · 0.95
equalMethod · 0.95
getMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45
getRecipeOutputMethod · 0.45

Tested by

no test coverage detected