Interface VolatileCodeHandler


@Internal public interface VolatileCodeHandler
Version-volatile code.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    getTextureValue(@NotNull HudPlayer player)
    Gets textures value of player's game profile.
    void
    inject(@NotNull HudPlayer player, net.kyori.adventure.bossbar.BossBar.Color color)
    Injects player.
    void
    removeBossBar(@NotNull HudPlayer player)
    Removes bar from player.
    void
    showBossBar(@NotNull HudPlayer player, net.kyori.adventure.bossbar.BossBar.Color color, @NotNull net.kyori.adventure.text.Component component)
    Shows bar to some player.
  • Method Details

    • inject

      void inject(@NotNull @NotNull HudPlayer player, @NotNull net.kyori.adventure.bossbar.BossBar.Color color)
      Injects player. This method calls when player joined.
      Parameters:
      player - target player
      color - bar's color
    • showBossBar

      void showBossBar(@NotNull @NotNull HudPlayer player, @NotNull net.kyori.adventure.bossbar.BossBar.Color color, @NotNull @NotNull net.kyori.adventure.text.Component component)
      Shows bar to some player.
      Parameters:
      player - target player
      color - bar's color
      component - bar's title
    • removeBossBar

      void removeBossBar(@NotNull @NotNull HudPlayer player)
      Removes bar from player.
      Parameters:
      player - target player
    • getTextureValue

      @NotNull @NotNull String getTextureValue(@NotNull @NotNull HudPlayer player)
      Gets textures value of player's game profile.
      Parameters:
      player - target player
      Returns:
      textures value