mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
#526: Add Block#applyBoneMeal()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
6ecfb063de
commit
301266fe1b
@ -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…
Reference in New Issue
Block a user