minecraft-src/net/minecraft/world/item/crafting/StonecutterRecipe.java
2025-07-04 01:41:11 +03:00

20 lines
621 B
Java

package net.minecraft.world.item.crafting;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.Blocks;
public class StonecutterRecipe extends SingleItemRecipe {
public StonecutterRecipe(String group, Ingredient ingredient, ItemStack result) {
super(RecipeType.STONECUTTING, RecipeSerializer.STONECUTTER, group, ingredient, result);
}
public boolean matches(SingleRecipeInput input, Level level) {
return this.ingredient.test(input.item());
}
@Override
public ItemStack getToastSymbol() {
return new ItemStack(Blocks.STONECUTTER);
}
}