SPIGOT-6729: Add Chunk.isEntitiesLoaded()

By: Brokkonaut <hannos17@gmx.de>
This commit is contained in:
Bukkit/Spigot 2021-09-06 18:51:44 +10:00
parent 891608deca
commit eb1aaf62d4

View file

@ -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.