Class BannerDuplicateRecipe

java.lang.Object
net.minecraft.recipe.SpecialCraftingRecipe
net.minecraft.recipe.BannerDuplicateRecipe
All Implemented Interfaces:
CraftingRecipe, Recipe<CraftingInventory>

public class BannerDuplicateRecipe
extends SpecialCraftingRecipe
  • Constructor Details

    • BannerDuplicateRecipe

      public BannerDuplicateRecipe​(Identifier id)
  • Method Details

    • matches

      public boolean matches​(CraftingInventory craftingInventory, World world)
      Description copied from interface: Recipe
      Determines whether this recipe matches the contents currently placed inside the available crafting grid.
    • craft

      public ItemStack craft​(CraftingInventory craftingInventory)
      Description copied from interface: Recipe
      Crafts this recipe.

      This method may perform side effects on the inventory argument.

      This method should return a new item stack on each call.

      Returns:
      the resulting item stack
    • getRemainder

      public DefaultedList<ItemStack> getRemainder​(CraftingInventory craftingInventory)
      Description copied from interface: Recipe
      Returns the remaining stacks to be left in the crafting grid after crafting is complete. Should return the same number of items as the input grid contains in the same order they're expected to appear in that grid.
    • getSerializer

      public RecipeSerializer<?> getSerializer()
    • fits

      @Environment(CLIENT) public boolean fits​(int width, int height)
      Determines whether this recipe's pattern will fit into the available crafting area.