//Create a new boss bar EzBossBar bossBar
=new EzBossBar
(new ChatMessage
("Ender Dragon",
false)); //Add a new viewer bossBar.
addViewer(player
); //Set boss bar progress bossBar.
setProgress(0.5f
); //Set boss bar color bossBar.
setColor(BarColor.
BLUE); //Set boss bar style bossBar.
setStyle(BarStyle.
NOTCHED_20); //Make sky dark bossBar.
setDarkenSky(true); //Play music to player bossBar.
setPlayMusic(true); //Create fog bossBar.
setCreateFog(true); //Make player cannot see the boss bar bossBar.
hide(player
); //Make player can see the boss bar bossBar.
show(player
); //Remove a viewer bossBar.
removeViewer(player
); //Drop the boss bar bossBar.
drop();