diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/World.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index ea4d31ba..55d5b288 100644 --- a/src/main/java/org/bukkit/World.java +++ b/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; @@ -342,6 +343,13 @@ public interface World extends PluginMessageRecipient { public List<LivingEntity> 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 <T extends Entity> Collection<T> getEntitiesByClass(Class<T>... classes); + + /** * Get a list of all players in this World * * @return A list of all Players currently residing in this world |