Class ServerBossEventMixin
java.lang.Object
net.minecraft.world.BossEvent
net.ixdarklord.coolcatcanvas.internal.mixin.ServerBossEventMixin
- All Implemented Interfaces:
StyledBossEvent
public abstract class ServerBossEventMixin
extends net.minecraft.world.BossEvent
implements StyledBossEvent
A boss bar's style (
CustomBossBars): kept on the bar, and sent to each player right after the bar itself,
whenever they are shown it.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.BossEvent
net.minecraft.world.BossEvent.BossBarColor, net.minecraft.world.BossEvent.BossBarOverlay -
Field Summary
Fields inherited from class net.minecraft.world.BossEvent
color, createWorldFog, darkenScreen, name, overlay, playBossMusic, progress -
Method Summary
Modifier and TypeMethodDescriptionintvoidcoolcatlib$setStyle(@Nullable net.minecraft.resources.Identifier style, int entityId) @Nullable net.minecraft.resources.Identifierabstract Collection<net.minecraft.server.level.ServerPlayer> Methods inherited from class net.minecraft.world.BossEvent
getColor, getId, getName, getOverlay, getProgress, setColor, setCreateWorldFog, setDarkenScreen, setName, setOverlay, setPlayBossMusic, setProgress, shouldCreateWorldFog, shouldDarkenScreen, shouldPlayBossMusic
-
Method Details
-
getPlayers
-
coolcatlib$style
@Nullable public @Nullable net.minecraft.resources.Identifier coolcatlib$style()- Specified by:
coolcatlib$stylein interfaceStyledBossEvent
-
coolcatlib$entityId
public int coolcatlib$entityId()- Specified by:
coolcatlib$entityIdin interfaceStyledBossEvent
-
coolcatlib$setStyle
public void coolcatlib$setStyle(@Nullable @Nullable net.minecraft.resources.Identifier style, int entityId) - Specified by:
coolcatlib$setStylein interfaceStyledBossEvent
-