mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#526: Add Block#applyBoneMeal()
This commit is contained in:
parent
29e9b367a4
commit
7d3323d84b
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue