public class LevelEntityManager extends Object
| Constructor and Description |
|---|
LevelEntityManager(NukkitLevel level) |
| Modifier and Type | Method and Description |
|---|---|
long |
allocateEntityId() |
void |
deregisterEntity(BaseEntity entity) |
boolean |
deregisterSystem(System system) |
Collection<BaseEntity> |
getAllEntities() |
Collection<BaseEntity> |
getEntitiesInBounds(BoundingBox boundingBox) |
List<Entity> |
getEntitiesInChunk(int x,
int z) |
Collection<BaseEntity> |
getEntitiesInDistance(com.flowpowered.math.vector.Vector3f origin,
float distance) |
Optional<BaseEntity> |
getEntityById(long entityId) |
List<NukkitPlayerSession> |
getPlayers() |
boolean |
isTicking() |
void |
onTick() |
void |
registerEntity(BaseEntity entity) |
void |
registerSystem(System system) |
public LevelEntityManager(NukkitLevel level)
public void registerEntity(BaseEntity entity)
public void deregisterEntity(BaseEntity entity)
public void registerSystem(System system)
public boolean deregisterSystem(System system)
public long allocateEntityId()
public Optional<BaseEntity> getEntityById(long entityId)
public List<NukkitPlayerSession> getPlayers()
public Collection<BaseEntity> getAllEntities()
public Collection<BaseEntity> getEntitiesInDistance(com.flowpowered.math.vector.Vector3f origin, float distance)
public Collection<BaseEntity> getEntitiesInBounds(BoundingBox boundingBox)
public void onTick()
public boolean isTicking()
Copyright © 2017–2019 NukkitX. All rights reserved.