Class StopSoundS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.StopSoundS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class StopSoundS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private SoundCategorycategoryprivate IdentifiersoundId -
Constructor Summary
Constructors Constructor Description StopSoundS2CPacket()StopSoundS2CPacket(Identifier soundId, SoundCategory category) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)SoundCategorygetCategory()IdentifiergetSoundId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
StopSoundS2CPacket
public StopSoundS2CPacket() -
StopSoundS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
getSoundId
-
getCategory
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-