mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
#526: Add Block#applyBoneMeal()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
@@ -392,6 +392,15 @@ public interface Block extends Metadatable {
|
|||||||
*/
|
*/
|
||||||
boolean breakNaturally(@Nullable ItemStack tool);
|
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
|
* Returns a list of items which would drop by destroying this block
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user