Commits

Cynthia Yantis authored 542fbfb4264 Merge
Merging in latest from upstream (SPIGOT/bukkit:refs/heads/master)

* commit '6ff6e0330578458e7e0f869a8b7e7e09a63361e1': #545: Add EnderSignal ItemStack API #535: Add EntityCategory API to LivingEntity #526: Add Block#applyBoneMeal()
No tags

src/main/java/org/bukkit/block/Block.java

Modified
385 385
386 386 /**
387 387 * Breaks the block and spawns items as if a player had digged it with a
388 388 * specific tool
389 389 *
390 390 * @param tool The tool or item in hand used for digging
391 391 * @return true if the block was destroyed
392 392 */
393 393 boolean breakNaturally(@Nullable ItemStack tool);
394 394
395 + /**
396 + * Simulate bone meal application to this block (if possible).
397 + *
398 + * @param face the face on which bonemeal should be applied
399 + *
400 + * @return true if the block was bonemealed, false otherwise
401 + */
402 + boolean applyBoneMeal(@NotNull BlockFace face);
403 +
395 404 /**
396 405 * Returns a list of items which would drop by destroying this block
397 406 *
398 407 * @return a list of dropped items for this type of block
399 408 */
400 409 @NotNull
401 410 Collection<ItemStack> getDrops();
402 411
403 412 /**
404 413 * Returns a list of items which would drop by destroying this block with

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut