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 Detail

      • bossBarNameChanged

        default void bossBarNameChanged​(@NotNull
                                        @NotNull BossBar bar,
                                        @NotNull
                                        @NotNull Component oldName,
                                        @NotNull
                                        @NotNull 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​(@NotNull
                                            @NotNull 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

        @ScheduledForRemoval(inVersion="5.0.0")
        @Deprecated
        default void bossBarPercentChanged​(@NotNull
                                           @NotNull 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​(@NotNull
                                         @NotNull BossBar bar,
                                         @NotNull
                                         @NotNull BossBar.Color oldColor,
                                         @NotNull
                                         @NotNull 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​(@NotNull
                                           @NotNull BossBar bar,
                                           @NotNull
                                           @NotNull BossBar.Overlay oldOverlay,
                                           @NotNull
                                           @NotNull 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​(@NotNull
                                         @NotNull BossBar bar,
                                         @NotNull
                                         @NotNull Set<BossBar.Flag> flagsAdded,
                                         @NotNull
                                         @NotNull 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