#988: Add World#getIntersectingChunks(BoundingBox)

This commit is contained in:
Flo0 2024-04-01 09:43:44 +11:00 committed by md_5
parent 9321d665f5
commit f02baa3869
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -436,6 +436,15 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
@NotNull
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}
*