Package net.kyori.adventure.bossbar
Interface BossBar.Listener
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
bossBarColorChanged(@NotNull BossBar bar, @NotNull BossBar.Color oldColor, @NotNull BossBar.Color newColor)
Bossbar color changed.default void
bossBarFlagsChanged(@NotNull BossBar bar, @NotNull Set<BossBar.Flag> flagsAdded, @NotNull Set<BossBar.Flag> flagsRemoved)
Bossbar flags changed.default void
bossBarNameChanged(@NotNull BossBar bar, @NotNull Component oldName, @NotNull Component newName)
Bossbar name changed.default void
bossBarOverlayChanged(@NotNull BossBar bar, @NotNull BossBar.Overlay oldOverlay, @NotNull BossBar.Overlay newOverlay)
Bossbar overlay changed.default void
bossBarPercentChanged(@NotNull BossBar bar, float oldProgress, float newProgress)
Deprecated.for removal since 4.2.0, usebossBarProgressChanged(BossBar, float, float)
default void
bossBarProgressChanged(@NotNull BossBar bar, float oldProgress, float newProgress)
Bossbar progress changed.
-
-
-
Method Detail
-
bossBarNameChanged
default void bossBarNameChanged(@NotNull @NotNull BossBar bar, @NotNull @NotNull Component oldName, @NotNull @NotNull Component newName)
Bossbar name changed.- Parameters:
bar
- the bossbaroldName
- the old namenewName
- the new name- Since:
- 4.0.0
-
bossBarProgressChanged
default void bossBarProgressChanged(@NotNull @NotNull BossBar bar, float oldProgress, float newProgress)
Bossbar progress changed.- Parameters:
bar
- the bossbaroldProgress
- the old progressnewProgress
- the new progress- Since:
- 4.0.0
-
bossBarPercentChanged
@ScheduledForRemoval(inVersion="5.0.0") @Deprecated default void bossBarPercentChanged(@NotNull @NotNull BossBar bar, float oldProgress, float newProgress)
Deprecated.for removal since 4.2.0, usebossBarProgressChanged(BossBar, float, float)
Bossbar progress changed.- Parameters:
bar
- the bossbaroldProgress
- the old progressnewProgress
- the new progress- Since:
- 4.0.0
-
bossBarColorChanged
default void bossBarColorChanged(@NotNull @NotNull BossBar bar, @NotNull @NotNull BossBar.Color oldColor, @NotNull @NotNull BossBar.Color newColor)
Bossbar color changed.- Parameters:
bar
- the bossbaroldColor
- the old colornewColor
- the new color- Since:
- 4.0.0
-
bossBarOverlayChanged
default void bossBarOverlayChanged(@NotNull @NotNull BossBar bar, @NotNull @NotNull BossBar.Overlay oldOverlay, @NotNull @NotNull BossBar.Overlay newOverlay)
Bossbar overlay changed.- Parameters:
bar
- the bossbaroldOverlay
- the old overlaynewOverlay
- the new overlay- Since:
- 4.0.0
-
bossBarFlagsChanged
default void bossBarFlagsChanged(@NotNull @NotNull BossBar bar, @NotNull @NotNull Set<BossBar.Flag> flagsAdded, @NotNull @NotNull Set<BossBar.Flag> flagsRemoved)
Bossbar flags changed.- Parameters:
bar
- the bossbarflagsAdded
- the flags added to the bossbarflagsRemoved
- the flags removed from the bossbar- Since:
- 4.0.0
-
-