Class DummyBossBar

java.lang.Object
org.cloudburstmc.server.utils.DummyBossBar

public class DummyBossBar extends Object
DummyBossBar =============== author: boybook Nukkit Project ===============
  • Method Details

    • getPlayer

      public CloudPlayer getPlayer()
    • getBossBarId

      public long getBossBarId()
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • 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()