Package net.minecraft.world.server
Class ServerBossInfo
java.lang.Object
net.minecraft.world.BossInfo
net.minecraft.world.server.ServerBossInfo
- Direct Known Subclasses:
CustomServerBossInfo
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.BossInfo
BossInfo.Color, BossInfo.Overlay
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set<ServerPlayerEntity>
private final Set<ServerPlayerEntity>
private boolean
Fields inherited from class net.minecraft.world.BossInfo
color, createWorldFog, darkenScreen, name, overlay, percent, playBossMusic
-
Constructor Summary
ConstructorDescriptionServerBossInfo
(ITextComponent p_i46839_1_, BossInfo.Color p_i46839_2_, BossInfo.Overlay p_i46839_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayer
(ServerPlayerEntity p_186760_1_) private void
broadcast
(SUpdateBossInfoPacket.Operation p_186759_1_) boolean
void
void
removePlayer
(ServerPlayerEntity p_186761_1_) void
setColor
(BossInfo.Color p_186745_1_) setCreateWorldFog
(boolean p_186743_1_) setDarkenScreen
(boolean p_186741_1_) void
setName
(ITextComponent p_186739_1_) void
setOverlay
(BossInfo.Overlay p_186746_1_) void
setPercent
(float p_186735_1_) setPlayBossMusic
(boolean p_186742_1_) void
setVisible
(boolean p_186758_1_) Methods inherited from class net.minecraft.world.BossInfo
getColor, getId, getName, getOverlay, getPercent, shouldCreateWorldFog, shouldDarkenScreen, shouldPlayBossMusic
-
Field Details
-
players
-
unmodifiablePlayers
-
visible
private boolean visible
-
-
Constructor Details
-
ServerBossInfo
public ServerBossInfo(ITextComponent p_i46839_1_, BossInfo.Color p_i46839_2_, BossInfo.Overlay p_i46839_3_)
-
-
Method Details
-
setPercent
public void setPercent(float p_186735_1_) - Overrides:
setPercent
in classBossInfo
-
setColor
-
setOverlay
- Overrides:
setOverlay
in classBossInfo
-
setDarkenScreen
- Overrides:
setDarkenScreen
in classBossInfo
-
setPlayBossMusic
- Overrides:
setPlayBossMusic
in classBossInfo
-
setCreateWorldFog
- Overrides:
setCreateWorldFog
in classBossInfo
-
setName
-
broadcast
-
addPlayer
-
removePlayer
-
removeAllPlayers
public void removeAllPlayers() -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean p_186758_1_) -
getPlayers
-