Class ClientboundStopSoundPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundStopSoundPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundStopSoundPacket(@Nullable SoundCategory category, @Nullable net.kyori.adventure.key.Key sound) ClientboundStopSoundPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable SoundCategory@Nullable net.kyori.adventure.key.KeygetSound()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundStopSoundPacketwithCategory(@Nullable SoundCategory category) @NonNull ClientboundStopSoundPacketwithSound(@Nullable net.kyori.adventure.key.Key sound) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundStopSoundPacket
-
ClientboundStopSoundPacket
public ClientboundStopSoundPacket(@Nullable SoundCategory category, @Nullable net.kyori.adventure.key.Key sound)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getCategory
-
getSound
public @Nullable net.kyori.adventure.key.Key getSound() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withCategory
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-