From 3c75ed7d46fc741ed40deefda99e38177f0cf3ca Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 13 Aug 2021 11:51:05 +0100 Subject: [PATCH] javadoc --- .../fastasyncworldedit/bukkit/adapter/IBukkitAdapter.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IBukkitAdapter.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IBukkitAdapter.java index 01efd6695..aaac5c69f 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IBukkitAdapter.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/IBukkitAdapter.java @@ -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 getEntities(org.bukkit.World world) { return TaskManager.IMP.sync(world::getEntities); }