Package be.seeseemelk.mockbukkit.boss
Class KeyedBossBarMock
java.lang.Object
be.seeseemelk.mockbukkit.boss.BossBarMock
be.seeseemelk.mockbukkit.boss.KeyedBossBarMock
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,org.bukkit.boss.BossBar,org.bukkit.boss.KeyedBossBar,org.bukkit.Keyed
Mock implementation of
KeyedBossBar.-
Constructor Summary
ConstructorsConstructorDescriptionKeyedBossBarMock(@NotNull org.bukkit.NamespacedKey key, @NotNull String title, @NotNull org.bukkit.boss.BarColor color, @NotNull org.bukkit.boss.BarStyle style, org.bukkit.boss.BarFlag... flags) Constructs a newKeyedBossBarMockwith the provided parameters. -
Method Summary
Methods inherited from class be.seeseemelk.mockbukkit.boss.BossBarMock
addFlag, addPlayer, getColor, getPlayers, getProgress, getStyle, getTitle, hasFlag, hide, isVisible, removeAll, removeFlag, removePlayer, setColor, setProgress, setStyle, setTitle, setVisible, showMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.boss.BossBar
addFlag, addPlayer, getColor, getPlayers, getProgress, getStyle, getTitle, hasFlag, hide, isVisible, removeAll, removeFlag, removePlayer, setColor, setProgress, setStyle, setTitle, setVisible, showMethods inherited from interface org.bukkit.Keyed
key
-
Constructor Details
-
KeyedBossBarMock
public KeyedBossBarMock(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull @NotNull String title, @NotNull @NotNull org.bukkit.boss.BarColor color, @NotNull @NotNull org.bukkit.boss.BarStyle style, org.bukkit.boss.BarFlag... flags) Constructs a newKeyedBossBarMockwith the provided parameters.- Parameters:
key- The bossbar's namespaced key.title- The title of the bossbar.color- The color of the bossbar.style- The style of the bossbar.flags- The flags to set on the bossbar.
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-