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

Method ingotOrDust

src/main/java/gregapi/util/OM.java:411–416  ·  view source on GitHub ↗
(OreDictMaterial aMaterial, long aMaterialAmount)

Source from the content-addressed store, hash-verified

409 }
410
411 public static ItemStack ingotOrDust(OreDictMaterial aMaterial, long aMaterialAmount) {
412 if (aMaterialAmount <= 0 || aMaterial == null) return null;
413 ItemStack rStack = ingot(aMaterial, aMaterialAmount);
414 if (rStack == null) rStack = dust(aMaterial, aMaterialAmount);
415 return rStack;
416 }
417
418 public static ItemStack ingotOrDust(OreDictMaterialStack aMaterial) {
419 return aMaterial == null ? null : ingotOrDust(aMaterial.mMaterial, aMaterial.mAmount);

Callers 3

getRecipeForMethod · 0.95
onModPostInit2Method · 0.95
runMethod · 0.95

Calls 2

ingotMethod · 0.95
dustMethod · 0.95

Tested by

no test coverage detected