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 Details

    • matches

      boolean matches​(C inv, World world)
    • craft

      ItemStack craft​(C inv)
    • fits

      @Environment(CLIENT) boolean fits​(int width, int height)
    • getOutput

      ItemStack getOutput()
    • getRemainingStacks

      default DefaultedList<ItemStack> getRemainingStacks​(C c)
    • getPreviewInputs

      default DefaultedList<Ingredient> getPreviewInputs()
    • isIgnoredInRecipeBook

      default boolean isIgnoredInRecipeBook()
    • getGroup

      @Environment(CLIENT) default String getGroup()
    • getRecipeKindIcon

      @Environment(CLIENT) default ItemStack getRecipeKindIcon()
    • getId

      Identifier getId()
    • getSerializer

      RecipeSerializer<?> getSerializer()
    • getType

      RecipeType<?> getType()