public class DummyBossBar extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DummyBossBar.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
void |
destroy() |
long |
getBossBarId() |
BlockColor |
getColor() |
float |
getLength() |
int |
getMixedColor() |
Player |
getPlayer() |
String |
getText() |
void |
reshow()
Once the player has teleported, resend Show BossBar
|
void |
setColor(BlockColor color)
Color is not working in the current version.
|
void |
setColor(int red,
int green,
int blue) |
void |
setLength(float length) |
void |
setText(String text) |
void |
updateBossEntityPosition()
Don't let the entity go too far from the player, or the BossBar will disappear.
|
public Player getPlayer()
public long getBossBarId()
public String getText()
public void setText(String text)
public float getLength()
public void setLength(float length)
public void setColor(BlockColor color)
color - the boss bar colorpublic void setColor(int red,
int green,
int blue)
public int getMixedColor()
public BlockColor getColor()
public void updateBossEntityPosition()
public void create()
public void reshow()
public void destroy()
Copyright © 2020. All rights reserved.