Interface VolatileCodeHandler
@Internal
public interface VolatileCodeHandler
Version-volatile code.
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetTextureValue(@NotNull HudPlayer player) Gets textures value of player's game profile.voidInjects player.voidremoveBossBar(@NotNull HudPlayer player) Removes bar from player.voidshowBossBar(@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 playercolor- 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 playercolor- bar's colorcomponent- bar's title
-
removeBossBar
Removes bar from player.- Parameters:
player- target player
-
getTextureValue
-