public class EntityManager extends Object implements Iterable<GlowEntity>
Constructor and Description |
---|
EntityManager() |
Modifier and Type | Method and Description |
---|---|
Collection<GlowEntity> |
getAll()
Gets all entities.
|
<T extends GlowEntity> |
getAll(Class<T> type)
Returns all entities with the specified type.
|
List<org.bukkit.entity.Entity> |
getEntitiesInside(BoundingBox searchBox,
GlowEntity except)
Returns all entities that are inside or partly inside the given bounding box, with optionally
one exception.
|
GlowEntity |
getEntity(int id)
Gets an entity by its id.
|
Iterator<GlowEntity> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public <T extends GlowEntity> Collection<T> getAll(Class<T> type)
T
- The type of entity.type
- The Class
for the type.public Collection<GlowEntity> getAll()
public GlowEntity getEntity(int id)
id
- The id.null
if it could not be found.public Iterator<GlowEntity> iterator()
iterator
in interface Iterable<GlowEntity>
public List<org.bukkit.entity.Entity> getEntitiesInside(BoundingBox searchBox, GlowEntity except)
searchBox
- the bounding box to search insideexcept
- the entity to exclude, or null to include allsearchBox
, other than except
Copyright © 2021. All rights reserved.