From 81c2625a0eaf22f738a207ad777af971cffaa647 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 11 Dec 2011 17:27:31 -0600 Subject: [PATCH] [Bleeding] Added: Collection World.getEntitiesByClass(Class... classes) By: Mike Primm --- paper-api/src/main/java/org/bukkit/World.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 *