Package net.minecraft.server.level
Class ServerBossEvent
java.lang.Object
net.minecraft.world.BossEvent
net.minecraft.server.level.ServerBossEvent
- Direct Known Subclasses:
CustomBossEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.BossEvent
BossEvent.BossBarColor, BossEvent.BossBarOverlay
-
Field Summary
Modifier and TypeFieldDescriptionprivate Set<ServerPlayer>
private Set<ServerPlayer>
private boolean
Fields inherited from class net.minecraft.world.BossEvent
color, createWorldFog, darkenScreen, name, overlay, playBossMusic, progress
-
Constructor Summary
ConstructorDescriptionServerBossEvent(Component p_8300_, BossEvent.BossBarColor p_8301_, BossEvent.BossBarOverlay p_8302_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayer(ServerPlayer p_8305_)
private void
broadcast(Function<BossEvent,ClientboundBossEventPacket> p_143225_)
boolean
void
void
removePlayer(ServerPlayer p_8316_)
void
setColor(BossEvent.BossBarColor p_8307_)
setCreateWorldFog(boolean p_8320_)
setDarkenScreen(boolean p_8315_)
void
void
setOverlay(BossEvent.BossBarOverlay p_8309_)
setPlayBossMusic(boolean p_8318_)
void
setProgress(float p_143223_)
void
setVisible(boolean p_8322_)
Methods inherited from class net.minecraft.world.BossEvent
getColor, getId, getName, getOverlay, getProgress, shouldCreateWorldFog, shouldDarkenScreen, shouldPlayBossMusic
-
Field Details
-
players
-
unmodifiablePlayers
-
visible
private boolean visible
-
-
Constructor Details
-
ServerBossEvent
public ServerBossEvent(Component p_8300_, BossEvent.BossBarColor p_8301_, BossEvent.BossBarOverlay p_8302_)
-
-
Method Details
-
setProgress
public void setProgress(float p_143223_)- Overrides:
setProgress
in classBossEvent
-
setColor
-
setOverlay
- Overrides:
setOverlay
in classBossEvent
-
setDarkenScreen
- Overrides:
setDarkenScreen
in classBossEvent
-
setPlayBossMusic
- Overrides:
setPlayBossMusic
in classBossEvent
-
setCreateWorldFog
- Overrides:
setCreateWorldFog
in classBossEvent
-
setName
-
broadcast
-
addPlayer
-
removePlayer
-
removeAllPlayers
public void removeAllPlayers() -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean p_8322_) -
getPlayers
-