Interface BossBar.Listener

Enclosing interface:
BossBar

@OverrideOnly
public static interface BossBar.Listener
A listener for changes that happen on a BossBar.
Since:
4.0.0
  • Method Details

    • bossBarNameChanged

      default void bossBarNameChanged​(@NonNull BossBar bar, @NonNull Component oldName, @NonNull Component newName)
      Bossbar name changed.
      Parameters:
      bar - the bossbar
      oldName - the old name
      newName - the new name
      Since:
      4.0.0
    • bossBarProgressChanged

      default void bossBarProgressChanged​(@NonNull BossBar bar, float oldProgress, float newProgress)
      Bossbar progress changed.
      Parameters:
      bar - the bossbar
      oldProgress - the old progress
      newProgress - the new progress
      Since:
      4.0.0
    • bossBarPercentChanged

      @Deprecated default void bossBarPercentChanged​(@NonNull BossBar bar, float oldProgress, float newProgress)
      Deprecated.
      Bossbar progress changed.
      Parameters:
      bar - the bossbar
      oldProgress - the old progress
      newProgress - the new progress
      Since:
      4.0.0
    • bossBarColorChanged

      default void bossBarColorChanged​(@NonNull BossBar bar, @NonNull BossBar.Color oldColor, @NonNull BossBar.Color newColor)
      Bossbar color changed.
      Parameters:
      bar - the bossbar
      oldColor - the old color
      newColor - the new color
      Since:
      4.0.0
    • bossBarOverlayChanged

      default void bossBarOverlayChanged​(@NonNull BossBar bar, @NonNull BossBar.Overlay oldOverlay, @NonNull BossBar.Overlay newOverlay)
      Bossbar overlay changed.
      Parameters:
      bar - the bossbar
      oldOverlay - the old overlay
      newOverlay - the new overlay
      Since:
      4.0.0
    • bossBarFlagsChanged

      default void bossBarFlagsChanged​(@NonNull BossBar bar, @NonNull Set<BossBar.Flag> flagsAdded, @NonNull Set<BossBar.Flag> flagsRemoved)
      Bossbar flags changed.
      Parameters:
      bar - the bossbar
      flagsAdded - the flags added to the bossbar
      flagsRemoved - the flags removed from the bossbar
      Since:
      4.0.0