Package net.minecraft.recipe
Interface Recipe<C extends Inventory>
- All Known Subinterfaces:
CraftingRecipe
- All Known Implementing Classes:
AbstractCookingRecipe
,ArmorDyeRecipe
,BannerDuplicateRecipe
,BlastingRecipe
,BookCloningRecipe
,CampfireCookingRecipe
,CuttingRecipe
,FireworkRocketRecipe
,FireworkStarFadeRecipe
,FireworkStarRecipe
,MapCloningRecipe
,MapExtendingRecipe
,RepairItemRecipe
,ShapedRecipe
,ShapelessRecipe
,ShieldDecorationRecipe
,ShulkerBoxColoringRecipe
,SmeltingRecipe
,SmithingRecipe
,SmokingRecipe
,SpecialCraftingRecipe
,StonecuttingRecipe
,SuspiciousStewRecipe
,TippedArrowRecipe
public interface Recipe<C extends Inventory>
-
Method Summary
Modifier and Type Method Description ItemStack
craft(C inv)
boolean
fits(int width, int height)
default String
getGroup()
Identifier
getId()
ItemStack
getOutput()
default DefaultedList<Ingredient>
getPreviewInputs()
default ItemStack
getRecipeKindIcon()
default DefaultedList<ItemStack>
getRemainingStacks(C c)
RecipeSerializer<?>
getSerializer()
RecipeType<?>
getType()
default boolean
isIgnoredInRecipeBook()
boolean
matches(C inv, World world)
-
Method Details
-
matches
-
craft
-
fits
@Environment(CLIENT) boolean fits(int width, int height) -
getOutput
ItemStack getOutput() -
getRemainingStacks
-
getPreviewInputs
-
isIgnoredInRecipeBook
default boolean isIgnoredInRecipeBook() -
getGroup
-
getRecipeKindIcon
-
getId
Identifier getId() -
getSerializer
RecipeSerializer<?> getSerializer() -
getType
RecipeType<?> getType()
-