SPIGOT-6729: Add Chunk.isEntitiesLoaded()

This commit is contained in:
Brokkonaut 2021-09-06 18:51:44 +10:00 committed by md_5
parent ed7bba95fc
commit 7da4c0be21
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -69,6 +69,13 @@ public interface Chunk extends PersistentDataHolder {
@NotNull @NotNull
ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain); 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. * Get a list of all entities in the chunk.
* This will force load any entities, which are not loaded. * This will force load any entities, which are not loaded.