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>
Mappings:
Namespace Name
official sg
intermediary net/minecraft/class_2770
named net/minecraft/network/packet/s2c/play/StopSoundS2CPacket
  • Field Details

    • soundId

      private Identifier soundId
      Mappings:
      Namespace Name Mixin selector
      official a Lsg;a:Lwb;
      intermediary field_12676 Lnet/minecraft/class_2770;field_12676:Lnet/minecraft/class_2960;
      named soundId Lnet/minecraft/network/packet/s2c/play/StopSoundS2CPacket;soundId:Lnet/minecraft/util/Identifier;
    • category

      private SoundCategory category
      Mappings:
      Namespace Name Mixin selector
      official b Lsg;b:Laeh;
      intermediary field_12677 Lnet/minecraft/class_2770;field_12677:Lnet/minecraft/class_3419;
      named category Lnet/minecraft/network/packet/s2c/play/StopSoundS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
  • Constructor Details

    • StopSoundS2CPacket

      public StopSoundS2CPacket()
    • StopSoundS2CPacket

      public StopSoundS2CPacket​(@Nullable Identifier soundId, @Nullable SoundCategory category)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsg;<init>(Lwb;Laeh;)V
      intermediary <init> Lnet/minecraft/class_2770;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/StopSoundS2CPacket;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;)V
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • getSoundId

      @Environment(CLIENT) @Nullable public Identifier getSoundId()
      Mappings:
      Namespace Name Mixin selector
      official b Lsg;b()Lwb;
      intermediary method_11904 Lnet/minecraft/class_2770;method_11904()Lnet/minecraft/class_2960;
      named getSoundId Lnet/minecraft/network/packet/s2c/play/StopSoundS2CPacket;getSoundId()Lnet/minecraft/util/Identifier;
    • getCategory

      @Environment(CLIENT) @Nullable public SoundCategory getCategory()
      Mappings:
      Namespace Name Mixin selector
      official c Lsg;c()Laeh;
      intermediary method_11903 Lnet/minecraft/class_2770;method_11903()Lnet/minecraft/class_3419;
      named getCategory Lnet/minecraft/network/packet/s2c/play/StopSoundS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lsg;a(Lpd;)V
      intermediary method_11905 Lnet/minecraft/class_2770;method_11905(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/StopSoundS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V