Package net.minecraft.world
Class BossEvent
java.lang.Object
net.minecraft.world.BossEvent
- Direct Known Subclasses:
LerpingBossEvent
,ServerBossEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected BossEvent.BossBarColor
protected boolean
protected boolean
private final UUID
protected Component
protected BossEvent.BossBarOverlay
protected boolean
protected float
-
Constructor Summary
ConstructorDescriptionBossEvent
(UUID p_18849_, Component p_18850_, BossEvent.BossBarColor p_18851_, BossEvent.BossBarOverlay p_18852_) -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getId()
getName()
float
void
setColor
(BossEvent.BossBarColor p_18854_) setCreateWorldFog
(boolean p_18859_) setDarkenScreen
(boolean p_18857_) void
void
setOverlay
(BossEvent.BossBarOverlay p_18855_) setPlayBossMusic
(boolean p_18858_) void
setProgress
(float p_146639_) boolean
boolean
boolean
-
Field Details
-
id
-
name
-
progress
protected float progress -
color
-
overlay
-
darkenScreen
protected boolean darkenScreen -
playBossMusic
protected boolean playBossMusic -
createWorldFog
protected boolean createWorldFog
-
-
Constructor Details
-
BossEvent
public BossEvent(UUID p_18849_, Component p_18850_, BossEvent.BossBarColor p_18851_, BossEvent.BossBarOverlay p_18852_)
-
-
Method Details
-
getId
-
getName
-
setName
-
getProgress
public float getProgress() -
setProgress
public void setProgress(float p_146639_) -
getColor
-
setColor
-
getOverlay
-
setOverlay
-
shouldDarkenScreen
public boolean shouldDarkenScreen() -
setDarkenScreen
-
shouldPlayBossMusic
public boolean shouldPlayBossMusic() -
setPlayBossMusic
-
setCreateWorldFog
-
shouldCreateWorldFog
public boolean shouldCreateWorldFog()
-