This commit is contained in:
dordsor21 2021-08-13 11:51:05 +01:00
parent c65c72b249
commit 3c75ed7d46
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -381,6 +381,13 @@ public interface IBukkitAdapter {
);
}
/**
* Retrieve the list of Bukkit entities ({@link org.bukkit.entity.Entity}) in the given world. If overridden by adapters
* will attempt retrieval asynchronously.
*
* @param world world to retrieve entities in
* @return list of {@link org.bukkit.entity.Entity}
*/
default List<org.bukkit.entity.Entity> getEntities(org.bukkit.World world) {
return TaskManager.IMP.sync(world::getEntities);
}