#988: Add World#getIntersectingChunks(BoundingBox)

By: Flo0 <flo.roma@web.de>
This commit is contained in:
Bukkit/Spigot 2024-04-01 09:43:44 +11:00
parent 97876f3d25
commit 1f1ef375be

View file

@ -436,6 +436,15 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
@NotNull @NotNull
public Map<Plugin, Collection<Chunk>> getPluginChunkTickets(); public Map<Plugin, Collection<Chunk>> getPluginChunkTickets();
/**
* Gets all Chunks intersecting the given BoundingBox.
*
* @param box BoundingBox to check
* @return A collection of Chunks intersecting the given BoundingBox
*/
@NotNull
public Collection<Chunk> getIntersectingChunks(@NotNull BoundingBox box);
/** /**
* Drops an item at the specified {@link Location} * Drops an item at the specified {@link Location}
* *