Class FireworkRocketRecipe

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

public class FireworkRocketRecipe
extends SpecialCraftingRecipe
  • Field Details

    • PAPER

      private static final Ingredient PAPER
    • DURATION_MODIFIER

      private static final Ingredient DURATION_MODIFIER
    • FIREWORK_STAR

      private static final Ingredient FIREWORK_STAR
  • Constructor Details

    • FireworkRocketRecipe

      public FireworkRocketRecipe​(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
    • fits

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

      public ItemStack getOutput()
      Specified by:
      getOutput in interface Recipe<CraftingInventory>
      Overrides:
      getOutput in class SpecialCraftingRecipe
    • getSerializer

      public RecipeSerializer<?> getSerializer()