public static interface ServerBossBar.Builder extends ResettableBuilder<ServerBossBar,ServerBossBar.Builder>
ServerBossBar
s.BossBar
,
ServerBossBar
Modifier and Type | Method and Description |
---|---|
ServerBossBar |
build()
Build the boss bar from the values in this builder.
|
ServerBossBar.Builder |
color(BossBarColor color)
Sets the color.
|
ServerBossBar.Builder |
createFog(boolean createFog)
Sets if fog should be created.
|
ServerBossBar.Builder |
darkenSky(boolean darkenSky)
Sets if the sky should darken.
|
ServerBossBar.Builder |
name(Text name)
Sets the name of the boss bar.
|
ServerBossBar.Builder |
overlay(BossBarOverlay overlay)
Sets the overlay.
|
ServerBossBar.Builder |
percent(float percent)
Sets the percent.
|
ServerBossBar.Builder |
playEndBossMusic(boolean playEndBossMusic)
Sets if the end boss music should be played.
|
ServerBossBar.Builder |
visible(boolean visible)
Sets if the boss bar is visible.
|
from, reset
ServerBossBar.Builder name(Text name)
name
- The boss bar nameServerBossBar.Builder percent(float percent)
The percent must be between 0.0
and 1.0
.
percent
- The percentServerBossBar.Builder color(BossBarColor color)
color
- The colorServerBossBar.Builder overlay(BossBarOverlay overlay)
overlay
- The overlayServerBossBar.Builder darkenSky(boolean darkenSky)
darkenSky
- If the sky should darkenServerBossBar.Builder playEndBossMusic(boolean playEndBossMusic)
playEndBossMusic
- If the end boss music should be playedServerBossBar.Builder createFog(boolean createFog)
createFog
- If fog should be createdServerBossBar.Builder visible(boolean visible)
visible
- If this boss bar is visibleServerBossBar build()