public class CommandBossBar extends ServerBossBar
BossBar.Color, BossBar.Style
Modifier and Type | Field and Description |
---|---|
private Identifier |
id |
private int |
maxValue |
private Set<UUID> |
playerUuids |
private int |
value |
color, darkenSky, dragonMusic, name, percent, style, thickenFog
Constructor and Description |
---|
CommandBossBar(Identifier id,
Text displayName) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(ServerPlayerEntity player) |
void |
addPlayer(UUID uuid) |
boolean |
addPlayers(Collection<ServerPlayerEntity> players) |
void |
clearPlayers() |
static CommandBossBar |
fromTag(CompoundTag tag,
Identifier id) |
Identifier |
getId() |
int |
getMaxValue() |
int |
getValue() |
void |
onPlayerConnect(ServerPlayerEntity player) |
void |
onPlayerDisconnect(ServerPlayerEntity player) |
void |
removePlayer(ServerPlayerEntity player) |
void |
setMaxValue(int maxValue) |
void |
setValue(int value) |
Text |
toHoverableText() |
CompoundTag |
toTag() |
getPlayers, isVisible, setColor, setDarkenSky, setDragonMusic, setName, setOverlay, setPercent, setThickenFog, setVisible
getColor, getDarkenSky, getName, getOverlay, getPercent, getThickenFog, getUuid, hasDragonMusic
private final Identifier id
private int value
private int maxValue
public CommandBossBar(Identifier id, Text displayName)
public Identifier getId()
public void addPlayer(ServerPlayerEntity player)
addPlayer
in class ServerBossBar
public void addPlayer(UUID uuid)
public void removePlayer(ServerPlayerEntity player)
removePlayer
in class ServerBossBar
public void clearPlayers()
clearPlayers
in class ServerBossBar
public int getValue()
public int getMaxValue()
public void setValue(int value)
public void setMaxValue(int maxValue)
public final Text toHoverableText()
public boolean addPlayers(Collection<ServerPlayerEntity> players)
public CompoundTag toTag()
public static CommandBossBar fromTag(CompoundTag tag, Identifier id)
public void onPlayerConnect(ServerPlayerEntity player)
public void onPlayerDisconnect(ServerPlayerEntity player)