Dieser Commit ist enthalten in:
dordsor21 2021-08-13 11:51:05 +01:00
Ursprung c65c72b249
Commit 3c75ed7d46
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -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) { default List<org.bukkit.entity.Entity> getEntities(org.bukkit.World world) {
return TaskManager.IMP.sync(world::getEntities); return TaskManager.IMP.sync(world::getEntities);
} }