geforkt von Mirrors/Paper
[Bleeding] Added: <T extends Entity> Collection<T> World.getEntitiesByClass(Class<T>... classes)
By: Mike Primm <mike@primmhome.com>
Dieser Commit ist enthalten in:
Ursprung
fff2c4278c
Commit
81c2625a0e
@ -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
|
||||||
*
|
*
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren