Interface Recipe<T extends RecipeInput>

All Known Subinterfaces:
CraftingRecipe, SmithingRecipe
All Known Implementing Classes:
AbstractCookingRecipe, ArmorDyeRecipe, BannerDuplicateRecipe, BlastingRecipe, BookCloningRecipe, CampfireCookingRecipe, CustomRecipe, DecoratedPotRecipe, FireworkRocketRecipe, FireworkStarFadeRecipe, FireworkStarRecipe, IngredientTests.CompressedShapelessRecipe, MapCloningRecipe, MapExtendingRecipe, RecipeBookTestRecipe, RepairItemRecipe, ShapedRecipe, ShapelessRecipe, ShieldDecorationRecipe, ShulkerBoxColoring, SingleItemRecipe, SmeltingRecipe, SmithingTransformRecipe, SmithingTrimRecipe, SmokingRecipe, StonecutterRecipe, SuspiciousStewRecipe, TippedArrowRecipe

public interface Recipe<T extends RecipeInput>
  • Field Details

  • Method Details

    • matches

      boolean matches(T pInput, Level pLevel)
    • assemble

      ItemStack assemble(T pInput, HolderLookup.Provider pRegistries)
    • canCraftInDimensions

      boolean canCraftInDimensions(int pWidth, int pHeight)
      Used to determine if this recipe can fit in a grid of the given width/height
    • getResultItem

      ItemStack getResultItem(HolderLookup.Provider pRegistries)
    • getRemainingItems

      default NonNullList<ItemStack> getRemainingItems(T pInput)
    • getIngredients

      default NonNullList<Ingredient> getIngredients()
    • isSpecial

      default boolean isSpecial()
    • showNotification

      default boolean showNotification()
    • getGroup

      default String getGroup()
    • getToastSymbol

      default ItemStack getToastSymbol()
    • getSerializer

      RecipeSerializer<?> getSerializer()
    • getType

      RecipeType<?> getType()
    • isIncomplete

      default boolean isIncomplete()