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 Identifieridprivate intmaxValueprivate Set<UUID>playerUuidsprivate intvalueFields 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 voidaddPlayer(UUID uuid)voidaddPlayer(ServerPlayerEntity player)booleanaddPlayers(Collection<ServerPlayerEntity> players)voidclearPlayers()static CommandBossBarfromTag(CompoundTag tag, Identifier id)IdentifiergetId()intgetMaxValue()intgetValue()voidonPlayerConnect(ServerPlayerEntity player)voidonPlayerDisconnect(ServerPlayerEntity player)voidremovePlayer(ServerPlayerEntity player)voidsetMaxValue(int maxValue)voidsetValue(int value)TexttoHoverableText()CompoundTagtoTag()Methods inherited from class net.minecraft.entity.boss.ServerBossBar
getPlayers, isVisible, setColor, setDarkenSky, setDragonMusic, setName, setOverlay, setPercent, setThickenFog, setVisibleMethods inherited from class net.minecraft.entity.boss.BossBar
getColor, getName, getOverlay, getPercent, getUuid, hasDragonMusic, shouldDarkenSky, shouldThickenFog
-
Field Details
-
id
-
playerUuids
-
value
private int value -
maxValue
private int maxValue
-
-
Constructor Details
-
CommandBossBar
-
-
Method Details
-
getId
-
addPlayer
- Overrides:
addPlayerin classServerBossBar
-
addPlayer
-
removePlayer
- Overrides:
removePlayerin classServerBossBar
-
clearPlayers
public void clearPlayers()- Overrides:
clearPlayersin 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
-