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) voidaddPlayerEntity(PlayerEntity entity) booleancacheEntity(Entity entity) getBossBar(UUID uuid) it.unimi.dsi.fastutil.longs.Long2ObjectMap<Entity>getEntityByGeyserId(long geyserId) getEntityByJavaId(int javaId) getPlayerEntity(UUID uuid) voidvoidvoidremoveBossBar(UUID uuid) voidremoveEntity(Entity entity) 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() -
getTickableEntities
-
removeAllBossBars
public void removeAllBossBars() -
getEntities
-
getNextEntityId
-