From eb1aaf62d49df48e28f40b825b3ac5be66795f3a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 6 Sep 2021 18:51:44 +1000 Subject: [PATCH] SPIGOT-6729: Add Chunk.isEntitiesLoaded() By: Brokkonaut --- paper-api/src/main/java/org/bukkit/Chunk.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Chunk.java b/paper-api/src/main/java/org/bukkit/Chunk.java index 40e9e375a6..5fd6030b26 100644 --- a/paper-api/src/main/java/org/bukkit/Chunk.java +++ b/paper-api/src/main/java/org/bukkit/Chunk.java @@ -69,6 +69,13 @@ public interface Chunk extends PersistentDataHolder { @NotNull ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain); + /** + * Checks if entities in this chunk are loaded. + * + * @return True if entities are loaded. + */ + boolean isEntitiesLoaded(); + /** * Get a list of all entities in the chunk. * This will force load any entities, which are not loaded.