#526: Add Block#applyBoneMeal()

This commit is contained in:
Parker Hawke 2020-08-27 11:27:10 +10:00 committed by md_5
parent 29e9b367a4
commit 7d3323d84b
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

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
*