net.minecraft.entity.boss

public class CommandBossBar

extends ServerBossBar

net.minecraft.server.bossevents.CustomBossEvent
net.minecraft.class_3002
net.minecraft.entity.boss.CommandBossBar

Field summary

Modifier and TypeField
private static final int
DEFAULT_MAX
field_56602
DEFAULT_MAX_VALUE
private final Identifier
id
field_13441
id
private final Set<UUID>
players
field_13440
playerUuids
private int
value
field_13443
value
private int
max
field_13442
maxValue

Constructor summary

ModifierConstructor
public (Identifier id, Text displayName)

Method summary

Modifier and TypeMethod
public Identifier
getTextId()
method_12959()
getId()
public void
addPlayer(ServerPlayer player)
method_14088(class_3222 arg0)
addPlayer(ServerPlayerEntity arg0)
public void
addOfflinePlayer(UUID player)
method_12964(UUID arg0)
addPlayer(UUID uuid)
public void
removePlayer(ServerPlayer player)
method_14089(class_3222 arg0)
removePlayer(ServerPlayerEntity arg0)
public void
removeAllPlayers()
method_14094()
clearPlayers()
public int
getValue()
method_12955()
getValue()
public int
getMax()
method_12960()
getMaxValue()
public void
setValue(int value)
method_12954(int arg0)
setValue(int value)
public void
setMax(int max)
method_12956(int arg0)
setMaxValue(int maxValue)
public final Text
getDisplayName()
method_12965()
toHoverableText()
public boolean
setPlayers(Collection<ServerPlayer> players)
method_12962(Collection<class_3222> arg0)
addPlayers(Collection<ServerPlayerEntity> players)
public static CommandBossBar
load(Identifier id, CustomBossEvent$Packed packed)
method_12966(class_2960 arg0, class_3002$class_10765 arg1)
fromSerialized(Identifier id, CommandBossBar$Serialized serialized)
public CommandBossBar$Serialized
pack()
method_67560()
toSerialized()
public void
onPlayerConnect(ServerPlayer player)
method_12957(class_3222 arg0)
onPlayerConnect(ServerPlayerEntity player)
public void
onPlayerDisconnect(ServerPlayer player)
method_12961(class_3222 arg0)
onPlayerDisconnect(ServerPlayerEntity player)
private Style
lambda$getDisplayName$0(Style arg0)
method_12958(class_2583 arg0)
method_12958(Style style)