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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBossBar(UUID uuid, BossBar bossBar)voidaddCachedPlayerEntityLink(long playerId, long linkedEntityId)voidaddPlayerEntity(PlayerEntity entity)booleancacheEntity(Entity entity)getBossBar(UUID uuid)longgetCachedPlayerEntityLink(long playerId)it.unimi.dsi.fastutil.longs.Long2ObjectMap<Entity>getEntityByGeyserId(long geyserId)getEntityByJavaId(long javaId)getPlayerEntity(UUID uuid)voidvoidremoveBossBar(UUID uuid)booleanremoveEntity(Entity entity, boolean force)removePlayerEntity(UUID uuid)voidspawnEntity(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
-