Search in sources :

Example 1 with GlowKeyedBossBar

use of net.glowstone.boss.GlowKeyedBossBar in project Glowstone by GlowstoneMC.

the class GlowServer method createBossBar.

@Override
@NotNull
public KeyedBossBar createBossBar(NamespacedKey key, @Nullable String title, BarColor barColor, BarStyle barStyle, BarFlag... barFlags) {
    KeyedBossBar bar = new GlowKeyedBossBar(key, title, barColor, barStyle, 1.0, barFlags);
    bossBars.put(key, bar);
    return bar;
}
Also used : GlowKeyedBossBar(net.glowstone.boss.GlowKeyedBossBar) KeyedBossBar(org.bukkit.boss.KeyedBossBar) GlowKeyedBossBar(net.glowstone.boss.GlowKeyedBossBar) Preconditions.checkNotNull(com.google.common.base.Preconditions.checkNotNull) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

Preconditions.checkNotNull (com.google.common.base.Preconditions.checkNotNull)1 GlowKeyedBossBar (net.glowstone.boss.GlowKeyedBossBar)1 KeyedBossBar (org.bukkit.boss.KeyedBossBar)1 NotNull (org.jetbrains.annotations.NotNull)1