Package org.cloudburstmc.server.utils
Class DummyBossBar
java.lang.Object
org.cloudburstmc.server.utils.DummyBossBar
DummyBossBar
===============
author: boybook
Nukkit Project
===============
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()voiddestroy()longorg.cloudburstmc.api.util.data.BlockColorgetColor()floatintgetText()voidreshow()Once the player has teleported, resend Show BossBarvoidsetColor(org.cloudburstmc.api.util.data.BlockColor color)Color is not working in the current version.voidsetLength(float length)voidvoidDon'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
public void setColor(org.cloudburstmc.api.util.data.BlockColor color)Color is not working in the current version. We are keep waiting for client support.- Parameters:
color- the boss bar color
-
getMixedColor
public int getMixedColor() -
getColor
public org.cloudburstmc.api.util.data.BlockColor 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()
-