Class CraftRecipeEvent.Pre

All Implemented Interfaces:
ICancellableEcsEvent
Enclosing class:
CraftRecipeEvent

public static final class CraftRecipeEvent.Pre extends CraftRecipeEvent
An event that is triggered before a recipe is crafted.

If cancelled, the crafting process will not proceed.

  • Constructor Details

    • Pre

      public Pre(@Nonnull CraftingRecipe craftedRecipe, int quantity)
      Default Constructor for a CraftRecipeEvent instance.
      Parameters:
      craftedRecipe - The recipe that is being crafted.
      quantity - The quantity of the recipe being crafted.