From 301266fe1bf3d72b2d9bd775ccff15a722c8ef91 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 27 Aug 2020 11:27:10 +1000 Subject: [PATCH] #526: Add Block#applyBoneMeal() By: Parker Hawke --- paper-api/src/main/java/org/bukkit/block/Block.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java index 2ff77abef2..0cfad6f84e 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/src/main/java/org/bukkit/block/Block.java @@ -392,6 +392,15 @@ public interface Block extends Metadatable { */ boolean breakNaturally(@Nullable ItemStack tool); + /** + * Simulate bone meal application to this block (if possible). + * + * @param face the face on which bonemeal should be applied + * + * @return true if the block was bonemealed, false otherwise + */ + boolean applyBoneMeal(@NotNull BlockFace face); + /** * Returns a list of items which would drop by destroying this block *