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
customId
field_13441
id
private final Set<UUID>
players
field_13440
playerUuids
private int
value
field_13443
value
private int
max
field_13442
maxValue
private final Runnable
dirtyCallback
field_1_1515
modificationCallback

Constructor summary

ModifierConstructor
public (UUID uuid, Identifier id, Text name, Runnable modificationCallback)

Method summary

Modifier and TypeMethod
public Identifier
customId()
method_12959()
getId()
public void
addPlayer(ServerPlayer player)
method_14088(class_3222 arg0)
addPlayer(ServerPlayerEntity arg0)
public void
removePlayer(ServerPlayer player)
method_14089(class_3222 arg0)
removePlayer(ServerPlayerEntity arg0)
public void
removeAllPlayers()
method_14094()
clearPlayers()
public int
value()
method_12955()
getValue()
public int
max()
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(UUID id, Identifier customId, CustomBossEvent$Packed packed, Runnable setDirty)
method_12966(UUID arg0, class_2960 arg1, class_3002$class_10765 arg2, Runnable arg3)
fromSerialized(UUID arg0, Identifier arg1, CommandBossBar$Serialized serialized, Runnable arg3)
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)
public void
setDirty()
method_1_1714()
markDirty()
private Style
lambda$getDisplayName$0(Style arg0)
method_12958(class_2583 arg0)
method_12958(Style style)