public class ServerBossInfo extends BossInfo
BossInfo.Color, BossInfo.Overlay
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ServerPlayerEntity> |
players |
private java.util.Set<ServerPlayerEntity> |
readOnlyPlayers |
private boolean |
visible |
Constructor and Description |
---|
ServerBossInfo(ITextComponent nameIn,
BossInfo.Color colorIn,
BossInfo.Overlay overlayIn) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(ServerPlayerEntity player) |
java.util.Collection<ServerPlayerEntity> |
getPlayers() |
boolean |
isVisible() |
void |
removeAllPlayers() |
void |
removePlayer(ServerPlayerEntity player) |
private void |
sendUpdate(SUpdateBossInfoPacket.Operation operationIn) |
void |
setColor(BossInfo.Color colorIn) |
BossInfo |
setCreateFog(boolean createFogIn) |
BossInfo |
setDarkenSky(boolean darkenSkyIn) |
void |
setName(ITextComponent nameIn) |
void |
setOverlay(BossInfo.Overlay overlayIn) |
void |
setPercent(float percentIn) |
BossInfo |
setPlayEndBossMusic(boolean playEndBossMusicIn) |
void |
setVisible(boolean visibleIn) |
getColor, getName, getOverlay, getPercent, getUniqueId, shouldCreateFog, shouldDarkenSky, shouldPlayEndBossMusic
private final java.util.Set<ServerPlayerEntity> players
private final java.util.Set<ServerPlayerEntity> readOnlyPlayers
private boolean visible
public ServerBossInfo(ITextComponent nameIn, BossInfo.Color colorIn, BossInfo.Overlay overlayIn)
public void setPercent(float percentIn)
setPercent
in class BossInfo
public void setColor(BossInfo.Color colorIn)
public void setOverlay(BossInfo.Overlay overlayIn)
setOverlay
in class BossInfo
public BossInfo setDarkenSky(boolean darkenSkyIn)
setDarkenSky
in class BossInfo
public BossInfo setPlayEndBossMusic(boolean playEndBossMusicIn)
setPlayEndBossMusic
in class BossInfo
public BossInfo setCreateFog(boolean createFogIn)
setCreateFog
in class BossInfo
public void setName(ITextComponent nameIn)
private void sendUpdate(SUpdateBossInfoPacket.Operation operationIn)
public void addPlayer(ServerPlayerEntity player)
public void removePlayer(ServerPlayerEntity player)
public void removeAllPlayers()
public boolean isVisible()
public void setVisible(boolean visibleIn)
public java.util.Collection<ServerPlayerEntity> getPlayers()