From 5f7735a971f56ed1c84b90a750d6dde296b404b7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 30 Aug 2021 18:44:39 +1000 Subject: [PATCH] SPIGOT-6719: Add getTileEntities() to LimitedRegion By: DerFrZocker --- .../main/java/org/bukkit/generator/LimitedRegion.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/generator/LimitedRegion.java b/paper-api/src/main/java/org/bukkit/generator/LimitedRegion.java index 0428f21086..85faeeeef9 100644 --- a/paper-api/src/main/java/org/bukkit/generator/LimitedRegion.java +++ b/paper-api/src/main/java/org/bukkit/generator/LimitedRegion.java @@ -1,7 +1,9 @@ package org.bukkit.generator; +import java.util.List; import org.bukkit.Location; import org.bukkit.RegionAccessor; +import org.bukkit.block.BlockState; import org.jetbrains.annotations.NotNull; /** @@ -42,4 +44,13 @@ public interface LimitedRegion extends RegionAccessor { * @return true if the coordinates are in the region, otherwise false. */ boolean isInRegion(int x, int y, int z); + + /** + * Gets a list of all tile entities in the limited region including the + * buffer zone. + * + * @return a list of tile entities. + */ + @NotNull + List getTileEntities(); }