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