2025-11-24 22:52:51 +03:00

50 lines
1.6 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.world.item.crafting;
import java.util.List;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
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;
import net.minecraft.world.item.crafting.SingleItemRecipe;
import net.minecraft.world.item.crafting.display.RecipeDisplay;
import net.minecraft.world.item.crafting.display.SlotDisplay;
import net.minecraft.world.item.crafting.display.StonecutterRecipeDisplay;
public class StonecutterRecipe
extends SingleItemRecipe {
public StonecutterRecipe(String group, Ingredient ingredient, ItemStack result) {
super(group, ingredient, result);
}
@Override
public RecipeType<StonecutterRecipe> getType() {
return RecipeType.STONECUTTING;
}
@Override
public RecipeSerializer<StonecutterRecipe> getSerializer() {
return RecipeSerializer.STONECUTTER;
}
@Override
public List<RecipeDisplay> display() {
return List.of(new StonecutterRecipeDisplay(this.input().display(), this.resultDisplay(), new SlotDisplay.ItemSlotDisplay(Items.STONECUTTER)));
}
public SlotDisplay resultDisplay() {
return new SlotDisplay.ItemStackSlotDisplay(this.result());
}
@Override
public RecipeBookCategory recipeBookCategory() {
return RecipeBookCategories.STONECUTTER;
}
}