Apollo
Developers
Mods
Bossbar

Boss Bar

Allows you to hide, move or customize the Minecraft boss bar.

Integration

How to toggle the mod

public void toggleBossBarExample(Player viewer, boolean value) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
    apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModBossbar.ENABLED, value));
}

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: true
  • SCALE

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.5F
      • Maximum: 1.5F
  • RENDER_BAR

    • Config Key: render-bar
    • Values
      • Type: Boolean
      • Default: true
  • RENDER_BOSS_TEXT

    • Config Key: render-boss-text
    • Values
      • Type: Boolean
      • Default: true
  • CUSTOM_BOSS_BAR

    • Config Key: custom-boss-bar
    • Values
      • Type: Boolean
      • Default: true
  • BAR_COLOR

    • Config Key: bar-color
    • Values
      • Type: String
      • Default: #FFF249F2
  • USE_MINECRAFT_GUISCALE

    • Config Key: use-minecraft-g-u-i-scale
    • Values
      • Type: Boolean
      • Default: true