#526: Add Block#applyBoneMeal()

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2020-08-27 11:27:10 +10:00
parent 6ecfb063de
commit 301266fe1b

View File

@ -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
*