mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-6729: Add Chunk.isEntitiesLoaded()
This commit is contained in:
parent
6719d1f1e7
commit
757d42aef6
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,11 @@ public class CraftChunk implements Chunk {
|
||||||
return new CraftBlock(worldServer, new BlockPosition((this.x << 4) | x, y, (this.z << 4) | z));
|
return new CraftBlock(worldServer, new BlockPosition((this.x << 4) | x, y, (this.z << 4) | z));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEntitiesLoaded() {
|
||||||
|
return getCraftWorld().getHandle().entityManager.a(ChunkCoordIntPair.pair(x, z)); // PAIL rename isEntitiesLoaded
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Entity[] getEntities() {
|
public Entity[] getEntities() {
|
||||||
if (!isLoaded()) {
|
if (!isLoaded()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue