Search in sources :

Example 1 with GlowBoss

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();
    }
}
Also used : GlowBoss(net.glowstone.entity.monster.GlowBoss)

Aggregations

GlowBoss (net.glowstone.entity.monster.GlowBoss)1