Commits

Flo0 authored and md_5 committed f02baa38696
#988: Add World#getIntersectingChunks(BoundingBox)
No tags

src/main/java/org/bukkit/World.java

Modified
429 429 * </p>
430 430 *
431 431 * @return unmodifiable map containing which plugins have tickets for what
432 432 * chunks
433 433 * @see #addPluginChunkTicket(int, int, Plugin)
434 434 * @see #removePluginChunkTicket(int, int, Plugin)
435 435 */
436 436 @NotNull
437 437 public Map<Plugin, Collection<Chunk>> getPluginChunkTickets();
438 438
439 + /**
440 + * Gets all Chunks intersecting the given BoundingBox.
441 + *
442 + * @param box BoundingBox to check
443 + * @return A collection of Chunks intersecting the given BoundingBox
444 + */
445 + @NotNull
446 + public Collection<Chunk> getIntersectingChunks(@NotNull BoundingBox box);
447 +
439 448 /**
440 449 * Drops an item at the specified {@link Location}
441 450 *
442 451 * @param location Location to drop the item
443 452 * @param item ItemStack to drop
444 453 * @return ItemDrop entity created as a result of this method
445 454 */
446 455 @NotNull
447 456 public Item dropItem(@NotNull Location location, @NotNull ItemStack item);
448 457

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

Add shortcut