Package cn.nukkit.utils
Class DummyBossBar
java.lang.Object
cn.nukkit.utils.DummyBossBar
- Author:
- boybook (Nukkit Project)
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
void
destroy()
long
getColor()
float
getText()
void
reshow()
Once the player has teleported, resend Show BossBarvoid
setColor
(BossBarColor color) void
setLength
(float length) void
void
Don't let the entity go too far from the player, or the BossBar will disappear.
-
Method Details
-
getPlayer
-
getBossBarId
public long getBossBarId() -
getText
-
setText
-
getLength
public float getLength() -
setLength
public void setLength(float length) -
setColor
-
getColor
-
updateBossEntityPosition
public void updateBossEntityPosition()Don't let the entity go too far from the player, or the BossBar will disappear. Update boss entity's position when teleport and each 5s. -
create
public void create() -
reshow
public void reshow()Once the player has teleported, resend Show BossBar -
destroy
public void destroy()
-