Package net.minecraft.entity.boss
Class CommandBossBar
java.lang.Object
net.minecraft.entity.boss.BossBar
net.minecraft.entity.boss.ServerBossBar
net.minecraft.entity.boss.CommandBossBar
public class CommandBossBar extends ServerBossBar
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.boss.BossBar
BossBar.Color, BossBar.Style
-
Field Summary
Fields Modifier and Type Field Description private Identifier
id
private int
maxValue
private Set<UUID>
playerUuids
private int
value
Fields inherited from class net.minecraft.entity.boss.BossBar
color, darkenSky, dragonMusic, name, percent, style, thickenFog
-
Constructor Summary
Constructors Constructor Description CommandBossBar(Identifier id, Text displayName)
-
Method Summary
Modifier and Type Method Description void
addPlayer(UUID uuid)
void
addPlayer(ServerPlayerEntity player)
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()
Methods inherited from class net.minecraft.entity.boss.ServerBossBar
getPlayers, isVisible, setColor, setDarkenSky, setDragonMusic, setName, setOverlay, setPercent, setThickenFog, setVisible
Methods inherited from class net.minecraft.entity.boss.BossBar
getColor, getDarkenSky, getName, getOverlay, getPercent, getThickenFog, getUuid, hasDragonMusic
-
Field Details
-
id
-
playerUuids
-
value
private int value -
maxValue
private int maxValue
-
-
Constructor Details
-
CommandBossBar
-
-
Method Details
-
getId
-
addPlayer
- Overrides:
addPlayer
in classServerBossBar
-
addPlayer
-
removePlayer
- Overrides:
removePlayer
in classServerBossBar
-
clearPlayers
public void clearPlayers()- Overrides:
clearPlayers
in classServerBossBar
-
getValue
public int getValue() -
getMaxValue
public int getMaxValue() -
setValue
public void setValue(int value) -
setMaxValue
public void setMaxValue(int maxValue) -
toHoverableText
-
addPlayers
-
toTag
-
fromTag
-
onPlayerConnect
-
onPlayerDisconnect
-