Commits
md_5 authored d4da8b95ffd
13 13 | * Event called when a Crafter is about to craft an item. |
14 14 | */ |
15 15 | public class CrafterCraftEvent extends BlockEvent implements Cancellable { |
16 16 | |
17 17 | private static final HandlerList handlers = new HandlerList(); |
18 18 | private final CraftingRecipe recipe; |
19 19 | private ItemStack result; |
20 20 | private List<ItemStack> remainingItems; |
21 21 | private boolean cancelled; |
22 22 | |
23 - | |
23 + | (since = "1.21.4") |
24 24 | public CrafterCraftEvent( Block theBlock, CraftingRecipe recipe, ItemStack result) { |
25 25 | this(theBlock, recipe, result, new ArrayList<>()); |
26 26 | } |
27 27 | |
28 28 | public CrafterCraftEvent( Block theBlock, CraftingRecipe recipe, ItemStack result, List<ItemStack> remainingItems) { |
29 29 | super(theBlock); |
30 30 | this.result = result; |
31 31 | this.recipe = recipe; |
32 32 | this.remainingItems = remainingItems; |
33 33 | } |