49 lines
1.6 KiB
Java
49 lines
1.6 KiB
Java
/*
|
|
* 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 SmeltingRecipe
|
|
extends AbstractCookingRecipe {
|
|
public SmeltingRecipe(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.FURNACE;
|
|
}
|
|
|
|
@Override
|
|
public RecipeSerializer<SmeltingRecipe> getSerializer() {
|
|
return RecipeSerializer.SMELTING_RECIPE;
|
|
}
|
|
|
|
@Override
|
|
public RecipeType<SmeltingRecipe> getType() {
|
|
return RecipeType.SMELTING;
|
|
}
|
|
|
|
@Override
|
|
public RecipeBookCategory recipeBookCategory() {
|
|
return switch (this.category()) {
|
|
default -> throw new MatchException(null, null);
|
|
case CookingBookCategory.BLOCKS -> RecipeBookCategories.FURNACE_BLOCKS;
|
|
case CookingBookCategory.FOOD -> RecipeBookCategories.FURNACE_FOOD;
|
|
case CookingBookCategory.MISC -> RecipeBookCategories.FURNACE_MISC;
|
|
};
|
|
}
|
|
}
|
|
|