/* * Decompiled with CFR 0.152. */ package net.minecraft.world.item.crafting; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.item.crafting.AbstractCookingRecipe; import net.minecraft.world.item.crafting.CookingBookCategory; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.item.crafting.RecipeBookCategories; import net.minecraft.world.item.crafting.RecipeBookCategory; import net.minecraft.world.item.crafting.RecipeSerializer; import net.minecraft.world.item.crafting.RecipeType; public class BlastingRecipe extends AbstractCookingRecipe { public BlastingRecipe(String group, CookingBookCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) { super(group, category, ingredient, result, experience, cookingTime); } @Override protected Item furnaceIcon() { return Items.BLAST_FURNACE; } @Override public RecipeSerializer getSerializer() { return RecipeSerializer.BLASTING_RECIPE; } @Override public RecipeType getType() { return RecipeType.BLASTING; } @Override public RecipeBookCategory recipeBookCategory() { return switch (this.category()) { default -> throw new MatchException(null, null); case CookingBookCategory.BLOCKS -> RecipeBookCategories.BLAST_FURNACE_BLOCKS; case CookingBookCategory.FOOD, CookingBookCategory.MISC -> RecipeBookCategories.BLAST_FURNACE_MISC; }; } }