use of net.glowstone.entity.monster.GlowBoss in project Glowstone by GlowstoneMC.
the class GlowPlayer method updateBossBars.
/**
* Remove all boss bars, then add back the ones whose world we're in.
*/
private void updateBossBars() {
clearBossBars();
worldLock.readLock().lock();
try {
for (GlowBoss boss : world.getEntitiesByClass(GlowBoss.class)) {
boss.addBarToPlayer(this);
}
} finally {
worldLock.readLock().unlock();
}
}
Aggregations