27 lines
575 B
Java
27 lines
575 B
Java
package net.minecraft.world.item.crafting;
|
|
|
|
import net.minecraft.core.HolderLookup;
|
|
import net.minecraft.world.item.ItemStack;
|
|
|
|
public abstract class CustomRecipe implements CraftingRecipe {
|
|
private final CraftingBookCategory category;
|
|
|
|
public CustomRecipe(CraftingBookCategory category) {
|
|
this.category = category;
|
|
}
|
|
|
|
@Override
|
|
public boolean isSpecial() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public ItemStack getResultItem(HolderLookup.Provider registries) {
|
|
return ItemStack.EMPTY;
|
|
}
|
|
|
|
@Override
|
|
public CraftingBookCategory category() {
|
|
return this.category;
|
|
}
|
|
}
|