mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
[Bleeding] Added: <T extends Entity> Collection<T> World.getEntitiesByClass(Class<T>... classes)
This commit is contained in:
parent
ef63530432
commit
b52aa71501
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,7 @@ package org.bukkit;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.bukkit.generator.ChunkGenerator;
|
import org.bukkit.generator.ChunkGenerator;
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -341,6 +342,13 @@ public interface World extends PluginMessageRecipient {
|
||||||
*/
|
*/
|
||||||
public List<LivingEntity> getLivingEntities();
|
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
|
* Get a list of all players in this World
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue