Package net.kyori.adventure.bossbar
Interface BossBarImplementation
@Internal
public interface BossBarImplementation
BossBar
internal implementation.- Since:
- 4.12.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <I extends BossBarImplementation>
IGets an implementation, and casts it totype
.default @NotNull Iterable<? extends BossBarViewer>
viewers()
Gets the viewers of this bossbar.
-
Method Details
-
get
@Internal @NotNull static <I extends BossBarImplementation> I get(@NotNull @NotNull BossBar bar, @NotNull @NotNull Class<I> type) Gets an implementation, and casts it totype
.- Type Parameters:
I
- the implementation type- Parameters:
bar
- the bossbartype
- the implementation type- Returns:
- a
I
- Since:
- 4.12.0
-
viewers
Gets the viewers of this bossbar.- Returns:
- the viewers of this bossbar
- Since:
- 4.14.0
-