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

Method getOutputChance

src/main/java/gregapi/recipes/Recipe.java:683–683  ·  view source on GitHub ↗
(long aIndex)

Source from the content-addressed store, hash-verified

681 public boolean mNeedsEmptyOutput = F;
682
683 public int getOutputChance(long aIndex) {if (aIndex < 0 || aIndex >= mChances.length) return getMaxChance(aIndex); return (int)mChances[(int)aIndex];}
684 public int getMaxChance(long aIndex) {if (aIndex < 0 || aIndex >= mMaxChances.length) return 10000; return (int)mMaxChances[(int)aIndex];}
685
686 public ItemStack getRepresentativeInput(long aIndex) {if (aIndex < 0 || aIndex >= mInputs.length) return null; return ST.copy(mInputs[(int)aIndex]);}

Callers 2

getOutputsMethod · 0.95
CachedDefaultRecipeMethod · 0.80

Calls 1

getMaxChanceMethod · 0.95

Tested by

no test coverage detected