Package be.seeseemelk.mockbukkit.boss
Class BossBarMock
java.lang.Object
be.seeseemelk.mockbukkit.boss.BossBarMock
- All Implemented Interfaces:
BossBar
- Direct Known Subclasses:
KeyedBossBarMock
Mock implementation of
BossBar
.-
Constructor Summary
ConstructorDescriptionBossBarMock
(@NotNull String title, @NotNull BarColor color, @NotNull BarStyle style, BarFlag @NotNull ... flags) Constructs a newBossBarMock
with the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
@NotNull BarColor
getColor()
double
@NotNull BarStyle
getStyle()
@NotNull String
getTitle()
boolean
void
hide()
Deprecated.boolean
void
void
removeFlag
(@NotNull BarFlag flag) void
removePlayer
(@NotNull Player player) void
void
setProgress
(double progress) void
void
void
setVisible
(boolean visible) void
show()
Deprecated.
-
Constructor Details
-
BossBarMock
public BossBarMock(@NotNull @NotNull String title, @NotNull @NotNull BarColor color, @NotNull @NotNull BarStyle style, BarFlag @NotNull ... flags) Constructs a newBossBarMock
with the provided parameters.- Parameters:
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
-
getTitle
-
setTitle
-
getColor
-
setColor
-
getStyle
-
setStyle
-
removeFlag
- Specified by:
removeFlag
in interfaceBossBar
-
addFlag
-
hasFlag
-
setProgress
public void setProgress(double progress) - Specified by:
setProgress
in interfaceBossBar
-
getProgress
public double getProgress()- Specified by:
getProgress
in interfaceBossBar
-
addPlayer
-
removePlayer
- Specified by:
removePlayer
in interfaceBossBar
-
removeAll
public void removeAll() -
getPlayers
- Specified by:
getPlayers
in interfaceBossBar
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceBossBar
-
isVisible
public boolean isVisible() -
show
Deprecated. -
hide
Deprecated.
-