use of net.minecraft.item.crafting.StonecuttingRecipe in project SophisticatedBackpacks by P3pp3rF1y.
the class StonecutterRecipeContainer method updateRecipeResultSlot.
private void updateRecipeResultSlot() {
if (!recipes.isEmpty() && isIndexInRecipeBounds(selectedRecipe.get())) {
StonecuttingRecipe stonecuttingrecipe = recipes.get(selectedRecipe.get());
resultInventory.setRecipeUsed(stonecuttingrecipe);
outputSlot.set(stonecuttingrecipe.assemble(inputInventory));
} else {
outputSlot.set(ItemStack.EMPTY);
}
}
Aggregations