Package net.minecraft.server.bossevents
Class CustomBossEvent
java.lang.Object
net.minecraft.world.BossEvent
net.minecraft.server.level.ServerBossEvent
net.minecraft.server.bossevents.CustomBossEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.BossEvent
BossEvent.BossBarColor, BossEvent.BossBarOverlay
-
Field Summary
Fields inherited from class net.minecraft.world.BossEvent
color, createWorldFog, darkenScreen, name, overlay, playBossMusic, progress
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOfflinePlayer
(UUID p_136271_) void
addPlayer
(ServerPlayer p_136267_) final Component
int
getMax()
int
getValue()
static CustomBossEvent
load
(CompoundTag p_136273_, ResourceLocation p_136274_) void
onPlayerConnect
(ServerPlayer p_136284_) void
onPlayerDisconnect
(ServerPlayer p_136287_) void
void
removePlayer
(ServerPlayer p_136281_) save()
void
setMax
(int p_136279_) boolean
setPlayers
(Collection<ServerPlayer> p_136269_) void
setValue
(int p_136265_) Methods inherited from class net.minecraft.server.level.ServerBossEvent
getPlayers, isVisible, setColor, setCreateWorldFog, setDarkenScreen, setName, setOverlay, setPlayBossMusic, setProgress, setVisible
Methods inherited from class net.minecraft.world.BossEvent
getColor, getId, getName, getOverlay, getProgress, shouldCreateWorldFog, shouldDarkenScreen, shouldPlayBossMusic
-
Field Details
-
id
-
players
-
value
private int value -
max
private int max
-
-
Constructor Details
-
CustomBossEvent
-
-
Method Details
-
getTextId
-
addPlayer
- Overrides:
addPlayer
in classServerBossEvent
-
addOfflinePlayer
-
removePlayer
- Overrides:
removePlayer
in classServerBossEvent
-
removeAllPlayers
public void removeAllPlayers()- Overrides:
removeAllPlayers
in classServerBossEvent
-
getValue
public int getValue() -
getMax
public int getMax() -
setValue
public void setValue(int p_136265_) -
setMax
public void setMax(int p_136279_) -
getDisplayName
-
setPlayers
-
save
-
load
-
onPlayerConnect
-
onPlayerDisconnect
-