mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 13:38:44 +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 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