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

Method getMaxChance

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

Source from the content-addressed store, hash-verified

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]);}
687 public ItemStack getOutput(long aIndex) {if (aIndex < 0 || aIndex >= mOutputs.length) return null; return ST.copy(mOutputs[(int)aIndex]);}

Callers 3

getOutputChanceMethod · 0.95
getOutputsMethod · 0.95
CachedDefaultRecipeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected