public class BossBarManager extends Object
Modifier and Type | Field and Description |
---|---|
private Map<Identifier,CommandBossBar> |
commandBossBars |
Constructor and Description |
---|
BossBarManager() |
Modifier and Type | Method and Description |
---|---|
CommandBossBar |
add(Identifier id,
Text displayName) |
void |
fromTag(CompoundTag tag) |
CommandBossBar |
get(Identifier id) |
Collection<CommandBossBar> |
getAll() |
Collection<Identifier> |
getIds() |
void |
onPlayerConnect(ServerPlayerEntity player) |
void |
onPlayerDisconnect(ServerPlayerEntity player) |
void |
remove(CommandBossBar bossBar) |
CompoundTag |
toTag() |
private final Map<Identifier,CommandBossBar> commandBossBars
@Nullable public CommandBossBar get(Identifier id)
public CommandBossBar add(Identifier id, Text displayName)
public void remove(CommandBossBar bossBar)
public Collection<Identifier> getIds()
public Collection<CommandBossBar> getAll()
public CompoundTag toTag()
public void fromTag(CompoundTag tag)
public void onPlayerConnect(ServerPlayerEntity player)
public void onPlayerDisconnect(ServerPlayerEntity player)