diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index ea4d31bab3..55d5b2881f 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -2,6 +2,7 @@ package org.bukkit; import java.io.File; import org.bukkit.generator.ChunkGenerator; +import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -341,6 +342,13 @@ public interface World extends PluginMessageRecipient { */ public List getLivingEntities(); + /** + * Get a collection of all entities in this World matching the given class/interface + * + * @return A List of all Entities currently residing in this world that match the given class/interface + */ + public Collection getEntitiesByClass(Class... classes); + /** * Get a list of all players in this World *