Class DummyBossBar

java.lang.Object
cn.nukkit.utils.DummyBossBar

public class DummyBossBar extends Object
Author:
boybook (Nukkit Project)
  • Method Details

    • getPlayer

      public Player 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

      @Since("FUTURE") public void setColor(@Nullable BossBarColor color)
    • getColor

      @Since("FUTURE") @Nullable public BossBarColor 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()