public class StopSoundS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private SoundCategory |
category |
private Identifier |
soundId |
Constructor and Description |
---|
StopSoundS2CPacket() |
StopSoundS2CPacket(Identifier soundId,
SoundCategory category) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
SoundCategory |
getCategory() |
Identifier |
getSoundId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private Identifier soundId
private SoundCategory category
public StopSoundS2CPacket()
public StopSoundS2CPacket(@Nullable Identifier soundId, @Nullable SoundCategory category)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) @Nullable public Identifier getSoundId()
@Environment(value=CLIENT) @Nullable public SoundCategory getCategory()
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>