Class EntityCache
java.lang.Object
org.geysermc.geyser.session.cache.EntityCache
Each session has its own EntityCache in the occasion that an entity packet is sent specifically
for that player (e.g. seeing vanished players from /vanish)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBossBar(UUID uuid, BossBar bossBar)
void
addCachedPlayerEntityLink(long playerId, long linkedEntityId)
void
addPlayerEntity(PlayerEntity entity)
boolean
cacheEntity(Entity entity)
getBossBar(UUID uuid)
long
getCachedPlayerEntityLink(long playerId)
it.unimi.dsi.fastutil.longs.Long2ObjectMap<Entity>
getEntityByGeyserId(long geyserId)
getEntityByJavaId(long javaId)
getPlayerEntity(UUID uuid)
void
void
removeBossBar(UUID uuid)
boolean
removeEntity(Entity entity, boolean force)
removePlayerEntity(UUID uuid)
void
spawnEntity(Entity entity)
void
-
Constructor Details
-
EntityCache
-
-
Method Details
-
spawnEntity
-
cacheEntity
-
removeEntity
-
removeAllEntities
public void removeAllEntities() -
getEntityByGeyserId
-
getEntityByJavaId
-
addPlayerEntity
-
getPlayerEntity
-
removePlayerEntity
-
getAllPlayerEntities
-
addBossBar
-
getBossBar
-
removeBossBar
-
updateBossBars
public void updateBossBars() -
getCachedPlayerEntityLink
public long getCachedPlayerEntityLink(long playerId) -
addCachedPlayerEntityLink
public void addCachedPlayerEntityLink(long playerId, long linkedEntityId) -
getTickableEntities
-
getEntities
-
getNextEntityId
-