From 1f1ef375be84ca714cc278779ae4165e407f808c Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 1 Apr 2024 09:43:44 +1100 Subject: [PATCH] #988: Add World#getIntersectingChunks(BoundingBox) By: Flo0 --- paper-api/src/main/java/org/bukkit/World.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 488327daa0..485f370168 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -436,6 +436,15 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient @NotNull public Map> 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 getIntersectingChunks(@NotNull BoundingBox box); + /** * Drops an item at the specified {@link Location} *