use of crazypants.enderio.base.recipe.IMachineRecipe.ResultStack in project EnderIO by SleepyTrousers.
the class ContainerEnchanter method updateOutput.
private void updateOutput() {
EnchanterRecipe currentEnchantmentRecipe = getInv().getCurrentEnchantmentRecipe();
if (currentEnchantmentRecipe != null) {
ResultStack[] completedResult = currentEnchantmentRecipe.getCompletedResult(0, 1F, getInv().getInvAsMachineRecipeInput());
getInv().setOutput(completedResult[0].item);
} else {
getInv().setOutput(Prep.getEmpty());
}
}
Aggregations