Search in sources :

Example 1 with StonecuttingRecipe

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);
    }
}
Also used : StonecuttingRecipe(net.minecraft.item.crafting.StonecuttingRecipe)

Aggregations

StonecuttingRecipe (net.minecraft.item.crafting.StonecuttingRecipe)1