Commits

md_5 authored d4da8b95ffd
Add since to deprecation annotation
No tags

src/main/java/org/bukkit/event/block/CrafterCraftEvent.java

Modified
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 - @Deprecated
23 + @Deprecated(since = "1.21.4")
24 24 public CrafterCraftEvent(@NotNull Block theBlock, @NotNull CraftingRecipe recipe, @NotNull ItemStack result) {
25 25 this(theBlock, recipe, result, new ArrayList<>());
26 26 }
27 27
28 28 public CrafterCraftEvent(@NotNull Block theBlock, @NotNull CraftingRecipe recipe, @NotNull ItemStack result, @NotNull List<ItemStack> remainingItems) {
29 29 super(theBlock);
30 30 this.result = result;
31 31 this.recipe = recipe;
32 32 this.remainingItems = remainingItems;
33 33 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut