[Bleeding] Added: <T extends Entity> Collection<T> World.getEntitiesByClass(Class<T>... classes)

By: Mike Primm <mike@primmhome.com>
This commit is contained in:
Bukkit/Spigot 2011-12-11 17:27:31 -06:00
parent fff2c4278c
commit 81c2625a0e

View file

@ -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<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
*