public class BossInfoServer extends BossInfo
BossInfo.Color, BossInfo.Overlay
Modifier and Type | Field and Description |
---|---|
private java.util.Set<EntityPlayerMP> |
players |
private java.util.Set<EntityPlayerMP> |
readOnlyPlayers |
private boolean |
visible |
Constructor and Description |
---|
BossInfoServer(ITextComponent nameIn,
BossInfo.Color colorIn,
BossInfo.Overlay overlayIn) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(EntityPlayerMP player) |
java.util.Collection<EntityPlayerMP> |
getPlayers() |
void |
removePlayer(EntityPlayerMP player) |
private void |
sendUpdate(SPacketUpdateBossInfo.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<EntityPlayerMP> players
private final java.util.Set<EntityPlayerMP> readOnlyPlayers
private boolean visible
public BossInfoServer(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(SPacketUpdateBossInfo.Operation operationIn)
public void addPlayer(EntityPlayerMP player)
public void removePlayer(EntityPlayerMP player)
public void setVisible(boolean visibleIn)
public java.util.Collection<EntityPlayerMP> getPlayers()