Class ClientboundBossEventPacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundBossEventPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundBossEventPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundBossEventPacket

      public ClientboundBossEventPacket(UUID uuid)
    • ClientboundBossEventPacket

      public ClientboundBossEventPacket(UUID uuid, net.kyori.adventure.text.Component title)
    • ClientboundBossEventPacket

      public ClientboundBossEventPacket(UUID uuid, float health)
    • ClientboundBossEventPacket

      public ClientboundBossEventPacket(UUID uuid, BossBarColor color, BossBarDivision division)
    • ClientboundBossEventPacket

      public ClientboundBossEventPacket(UUID uuid, boolean darkenSky, boolean playEndMusic, boolean showFog)
    • ClientboundBossEventPacket

      public ClientboundBossEventPacket(UUID uuid, net.kyori.adventure.text.Component title, float health, BossBarColor color, BossBarDivision division, boolean darkenSky, boolean playEndMusic, boolean showFog)
    • ClientboundBossEventPacket

      public ClientboundBossEventPacket(io.netty.buffer.ByteBuf in)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out)
      Specified by:
      serialize in interface MinecraftPacket
    • getUuid

      public UUID getUuid()
    • getAction

      public BossBarAction getAction()
    • getTitle

      public @Nullable net.kyori.adventure.text.Component getTitle()
    • getHealth

      public float getHealth()
    • getColor

      public @Nullable BossBarColor getColor()
    • getDivision

      public @Nullable BossBarDivision getDivision()
    • isDarkenSky

      public boolean isDarkenSky()
    • isPlayEndMusic

      public boolean isPlayEndMusic()
    • isShowFog

      public boolean isShowFog()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withUuid

      public @NonNull ClientboundBossEventPacket withUuid(UUID uuid)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAction

      public @NonNull ClientboundBossEventPacket withAction(BossBarAction action)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTitle

      public @NonNull ClientboundBossEventPacket withTitle(@Nullable net.kyori.adventure.text.Component title)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHealth

      public @NonNull ClientboundBossEventPacket withHealth(float health)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withColor

      public @NonNull ClientboundBossEventPacket withColor(@Nullable BossBarColor color)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDivision

      public @NonNull ClientboundBossEventPacket withDivision(@Nullable BossBarDivision division)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDarkenSky

      public @NonNull ClientboundBossEventPacket withDarkenSky(boolean darkenSky)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPlayEndMusic

      public @NonNull ClientboundBossEventPacket withPlayEndMusic(boolean playEndMusic)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withShowFog

      public @NonNull ClientboundBossEventPacket withShowFog(boolean showFog)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).