Package net.minecraft.world
Class BossInfo
- java.lang.Object
-
- net.minecraft.world.BossInfo
-
- Direct Known Subclasses:
ClientBossInfo
,ServerBossInfo
public abstract class BossInfo extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BossInfo.Color
static class
BossInfo.Overlay
-
Field Summary
Fields Modifier and Type Field Description protected BossInfo.Color
color
protected boolean
createWorldFog
protected boolean
darkenScreen
private java.util.UUID
id
protected ITextComponent
name
protected BossInfo.Overlay
overlay
protected float
percent
protected boolean
playBossMusic
-
Constructor Summary
Constructors Constructor Description BossInfo(java.util.UUID p_i46824_1_, ITextComponent p_i46824_2_, BossInfo.Color p_i46824_3_, BossInfo.Overlay p_i46824_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BossInfo.Color
getColor()
java.util.UUID
getId()
ITextComponent
getName()
BossInfo.Overlay
getOverlay()
float
getPercent()
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_)
boolean
shouldCreateWorldFog()
boolean
shouldDarkenScreen()
boolean
shouldPlayBossMusic()
-
-
-
Field Detail
-
id
private final java.util.UUID id
-
name
protected ITextComponent name
-
percent
protected float percent
-
color
protected BossInfo.Color color
-
overlay
protected BossInfo.Overlay overlay
-
darkenScreen
protected boolean darkenScreen
-
playBossMusic
protected boolean playBossMusic
-
createWorldFog
protected boolean createWorldFog
-
-
Constructor Detail
-
BossInfo
public BossInfo(java.util.UUID p_i46824_1_, ITextComponent p_i46824_2_, BossInfo.Color p_i46824_3_, BossInfo.Overlay p_i46824_4_)
-
-
Method Detail
-
getId
public java.util.UUID getId()
-
getName
public ITextComponent getName()
-
setName
public void setName(ITextComponent p_186739_1_)
-
getPercent
public float getPercent()
-
setPercent
public void setPercent(float p_186735_1_)
-
getColor
public BossInfo.Color getColor()
-
setColor
public void setColor(BossInfo.Color p_186745_1_)
-
getOverlay
public BossInfo.Overlay getOverlay()
-
setOverlay
public void setOverlay(BossInfo.Overlay p_186746_1_)
-
shouldDarkenScreen
public boolean shouldDarkenScreen()
-
setDarkenScreen
public BossInfo setDarkenScreen(boolean p_186741_1_)
-
shouldPlayBossMusic
public boolean shouldPlayBossMusic()
-
setPlayBossMusic
public BossInfo setPlayBossMusic(boolean p_186742_1_)
-
setCreateWorldFog
public BossInfo setCreateWorldFog(boolean p_186743_1_)
-
shouldCreateWorldFog
public boolean shouldCreateWorldFog()
-
-