mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
[Bleeding] Added: <T extends Entity> Collection<T> World.getEntitiesByClass(Class<T>... classes)
By: Mike Primm <mike@primmhome.com>
This commit is contained in:
parent
fff2c4278c
commit
81c2625a0e
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue