diff options
Diffstat (limited to 'patches/api/0309-Add-BlockBreakBlockEvent.patch')
-rw-r--r-- | patches/api/0309-Add-BlockBreakBlockEvent.patch | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/patches/api/0309-Add-BlockBreakBlockEvent.patch b/patches/api/0309-Add-BlockBreakBlockEvent.patch index 3ef95aee57..dd02c33432 100644 --- a/patches/api/0309-Add-BlockBreakBlockEvent.patch +++ b/patches/api/0309-Add-BlockBreakBlockEvent.patch @@ -6,17 +6,17 @@ Subject: [PATCH] Add BlockBreakBlockEvent diff --git a/src/main/java/io/papermc/paper/event/block/BlockBreakBlockEvent.java b/src/main/java/io/papermc/paper/event/block/BlockBreakBlockEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..51129c5c90dafdba08b7f533a71448ace56381d5 +index 0000000000000000000000000000000000000000..4f7535daf0d9967fadb0c6f8afbd3993eace410d --- /dev/null +++ b/src/main/java/io/papermc/paper/event/block/BlockBreakBlockEvent.java -@@ -0,0 +1,60 @@ +@@ -0,0 +1,61 @@ +package io.papermc.paper.event.block; + +import org.bukkit.block.Block; +import org.bukkit.event.HandlerList; -+import org.bukkit.event.block.BlockEvent; +import org.bukkit.event.block.BlockExpEvent; +import org.bukkit.inventory.ItemStack; ++import org.jetbrains.annotations.ApiStatus; +import org.jetbrains.annotations.NotNull; + +import java.util.List; @@ -30,9 +30,10 @@ index 0000000000000000000000000000000000000000..51129c5c90dafdba08b7f533a71448ac + + private static final HandlerList HANDLER_LIST = new HandlerList(); + -+ private final List<ItemStack> drops; + private final Block source; ++ private final List<ItemStack> drops; + ++ @ApiStatus.Internal + public BlockBreakBlockEvent(@NotNull Block block, @NotNull Block source, @NotNull List<ItemStack> drops) { + super(block, 0); + this.source = source; @@ -40,13 +41,13 @@ index 0000000000000000000000000000000000000000..51129c5c90dafdba08b7f533a71448ac + } + + /** -+ * Get the drops of this event ++ * Gets the drops of this event + * + * @return the drops + */ + @NotNull + public List<ItemStack> getDrops() { -+ return drops; ++ return this.drops; + } + + /** @@ -56,7 +57,7 @@ index 0000000000000000000000000000000000000000..51129c5c90dafdba08b7f533a71448ac + */ + @NotNull + public Block getSource() { -+ return source; ++ return this.source; + } + + @NotNull |