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 Type
    Method
    Description
    int
     
    void
    coolcatlib$setStyle(@Nullable net.minecraft.resources.Identifier style, int entityId)
     
    @Nullable net.minecraft.resources.Identifier
     
    abstract 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getPlayers

      public abstract Collection<net.minecraft.server.level.ServerPlayer> getPlayers()
    • coolcatlib$style

      @Nullable public @Nullable net.minecraft.resources.Identifier coolcatlib$style()
      Specified by:
      coolcatlib$style in interface StyledBossEvent
    • coolcatlib$entityId

      public int coolcatlib$entityId()
      Specified by:
      coolcatlib$entityId in interface StyledBossEvent
    • coolcatlib$setStyle

      public void coolcatlib$setStyle(@Nullable @Nullable net.minecraft.resources.Identifier style, int entityId)
      Specified by:
      coolcatlib$setStyle in interface StyledBossEvent