Package net.minecraft.world.server
Class ServerBossInfo
- java.lang.Object
-
- net.minecraft.world.BossInfo
-
- net.minecraft.world.server.ServerBossInfo
-
- Direct Known Subclasses:
CustomServerBossInfo
public class ServerBossInfo extends BossInfo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.BossInfo
BossInfo.Color, BossInfo.Overlay
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<ServerPlayerEntity>
players
private java.util.Set<ServerPlayerEntity>
unmodifiablePlayers
private boolean
visible
-
Fields inherited from class net.minecraft.world.BossInfo
color, createWorldFog, darkenScreen, name, overlay, percent, playBossMusic
-
-
Constructor Summary
Constructors Constructor Description ServerBossInfo(ITextComponent p_i46839_1_, BossInfo.Color p_i46839_2_, BossInfo.Overlay p_i46839_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPlayer(ServerPlayerEntity p_186760_1_)
private void
broadcast(SUpdateBossInfoPacket.Operation p_186759_1_)
java.util.Collection<ServerPlayerEntity>
getPlayers()
boolean
isVisible()
void
removeAllPlayers()
void
removePlayer(ServerPlayerEntity p_186761_1_)
void
setColor(BossInfo.Color p_186745_1_)
BossInfo
setCreateWorldFog(boolean p_186743_1_)
BossInfo
setDarkenScreen(boolean p_186741_1_)
void
setName(ITextComponent p_186739_1_)
void
setOverlay(BossInfo.Overlay p_186746_1_)
void
setPercent(float p_186735_1_)
BossInfo
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 Detail
-
players
private final java.util.Set<ServerPlayerEntity> players
-
unmodifiablePlayers
private final java.util.Set<ServerPlayerEntity> unmodifiablePlayers
-
visible
private boolean visible
-
-
Constructor Detail
-
ServerBossInfo
public ServerBossInfo(ITextComponent p_i46839_1_, BossInfo.Color p_i46839_2_, BossInfo.Overlay p_i46839_3_)
-
-
Method Detail
-
setPercent
public void setPercent(float p_186735_1_)
- Overrides:
setPercent
in classBossInfo
-
setColor
public void setColor(BossInfo.Color p_186745_1_)
-
setOverlay
public void setOverlay(BossInfo.Overlay p_186746_1_)
- Overrides:
setOverlay
in classBossInfo
-
setDarkenScreen
public BossInfo setDarkenScreen(boolean p_186741_1_)
- Overrides:
setDarkenScreen
in classBossInfo
-
setPlayBossMusic
public BossInfo setPlayBossMusic(boolean p_186742_1_)
- Overrides:
setPlayBossMusic
in classBossInfo
-
setCreateWorldFog
public BossInfo setCreateWorldFog(boolean p_186743_1_)
- Overrides:
setCreateWorldFog
in classBossInfo
-
setName
public void setName(ITextComponent p_186739_1_)
-
broadcast
private void broadcast(SUpdateBossInfoPacket.Operation p_186759_1_)
-
addPlayer
public void addPlayer(ServerPlayerEntity p_186760_1_)
-
removePlayer
public void removePlayer(ServerPlayerEntity p_186761_1_)
-
removeAllPlayers
public void removeAllPlayers()
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean p_186758_1_)
-
getPlayers
public java.util.Collection<ServerPlayerEntity> getPlayers()
-
-