Class ClientboundBossEventPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundBossEventPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundBossEventPacket(io.netty.buffer.ByteBuf in) ClientboundBossEventPacket(UUID uuid, boolean darkenSky, boolean playEndMusic, boolean showFog) ClientboundBossEventPacket(UUID uuid, float health) ClientboundBossEventPacket(UUID uuid, net.kyori.adventure.text.Component title) ClientboundBossEventPacket(UUID uuid, net.kyori.adventure.text.Component title, float health, BossBarColor color, BossBarDivision division, boolean darkenSky, boolean playEndMusic, boolean showFog) ClientboundBossEventPacket(UUID uuid, BossBarColor color, BossBarDivision division) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable BossBarColorgetColor()@Nullable BossBarDivisionfloat@Nullable net.kyori.adventure.text.ComponentgetTitle()getUuid()inthashCode()booleanbooleanbooleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundBossEventPacketwithAction(BossBarAction action) @NonNull ClientboundBossEventPacketwithColor(@Nullable BossBarColor color) @NonNull ClientboundBossEventPacketwithDarkenSky(boolean darkenSky) @NonNull ClientboundBossEventPacketwithDivision(@Nullable BossBarDivision division) @NonNull ClientboundBossEventPacketwithHealth(float health) @NonNull ClientboundBossEventPacketwithPlayEndMusic(boolean playEndMusic) @NonNull ClientboundBossEventPacketwithShowFog(boolean showFog) @NonNull ClientboundBossEventPacketwithTitle(@Nullable net.kyori.adventure.text.Component title) @NonNull ClientboundBossEventPacketMethods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundBossEventPacket
-
ClientboundBossEventPacket
-
ClientboundBossEventPacket
-
ClientboundBossEventPacket
-
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:
serializein interfaceMinecraftPacket
-
getUuid
-
getAction
-
getTitle
public @Nullable net.kyori.adventure.text.Component getTitle() -
getHealth
public float getHealth() -
getColor
-
getDivision
-
isDarkenSky
public boolean isDarkenSky() -
isPlayEndMusic
public boolean isPlayEndMusic() -
isShowFog
public boolean isShowFog() -
equals
-
canEqual
-
hashCode
-
toString
-
withUuid
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAction
- Returns:
- a clone of this object, except with this updated property (returns
thisif 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
thisif an identical value is passed).
-
withHealth
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withColor
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDivision
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDarkenSky
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayEndMusic
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShowFog
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-