public class EntityCache extends Object
| Constructor and Description |
|---|
EntityCache(GeyserSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBossBar(UUID uuid,
BossBar bossBar) |
void |
addPlayerEntity(PlayerEntity entity) |
void |
cacheEntity(Entity entity) |
void |
clear() |
BossBar |
getBossBar(UUID uuid) |
<T extends Entity> |
getEntitiesByType(Class<T> entityType) |
Entity |
getEntityByGeyserId(long geyserId) |
Entity |
getEntityByJavaId(long javaId) |
PlayerEntity |
getPlayerEntity(UUID uuid) |
void |
removeAllEntities() |
void |
removeBossBar(UUID uuid) |
boolean |
removeEntity(Entity entity,
boolean force) |
void |
removePlayerEntity(UUID uuid) |
void |
spawnEntity(Entity entity) |
void |
updateBossBars() |
public EntityCache(GeyserSession session)
public void spawnEntity(Entity entity)
public void cacheEntity(Entity entity)
public boolean removeEntity(Entity entity, boolean force)
public void removeAllEntities()
public Entity getEntityByGeyserId(long geyserId)
public Entity getEntityByJavaId(long javaId)
public void addPlayerEntity(PlayerEntity entity)
public PlayerEntity getPlayerEntity(UUID uuid)
public void removePlayerEntity(UUID uuid)
public void removeBossBar(UUID uuid)
public void updateBossBars()
public void clear()
Copyright © 2020 GeyserMC. All rights reserved.