Class PlaySoundIdS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.PlaySoundIdS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class PlaySoundIdS2CPacket
extends Object
implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official qd
intermediary net/minecraft/class_2660
named net/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket
  • Field Details

    • id

      private Identifier id
      Mappings:
      Namespace Name Mixin selector
      official a Lqd;a:Lwb;
      intermediary field_12170 Lnet/minecraft/class_2660;field_12170:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;id:Lnet/minecraft/util/Identifier;
    • category

      private SoundCategory category
      Mappings:
      Namespace Name Mixin selector
      official b Lqd;b:Laeh;
      intermediary field_12171 Lnet/minecraft/class_2660;field_12171:Lnet/minecraft/class_3419;
      named category Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
    • fixedX

      private int fixedX
      Mappings:
      Namespace Name Mixin selector
      official c Lqd;c:I
      intermediary field_12169 Lnet/minecraft/class_2660;field_12169:I
      named fixedX Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedX:I
    • fixedY

      private int fixedY
      Mappings:
      Namespace Name Mixin selector
      official d Lqd;d:I
      intermediary field_12168 Lnet/minecraft/class_2660;field_12168:I
      named fixedY Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedY:I
    • fixedZ

      private int fixedZ
      Mappings:
      Namespace Name Mixin selector
      official e Lqd;e:I
      intermediary field_12167 Lnet/minecraft/class_2660;field_12167:I
      named fixedZ Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedZ:I
    • volume

      private float volume
      Mappings:
      Namespace Name Mixin selector
      official f Lqd;f:F
      intermediary field_12166 Lnet/minecraft/class_2660;field_12166:F
      named volume Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;volume:F
    • pitch

      private float pitch
      Mappings:
      Namespace Name Mixin selector
      official g Lqd;g:F
      intermediary field_12172 Lnet/minecraft/class_2660;field_12172:F
      named pitch Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;pitch:F
  • Constructor Details

    • PlaySoundIdS2CPacket

      public PlaySoundIdS2CPacket()
    • PlaySoundIdS2CPacket

      public PlaySoundIdS2CPacket​(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lqd;<init>(Lwb;Laeh;Ldiu;FF)V
      intermediary <init> Lnet/minecraft/class_2660;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_243;FF)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/Vec3d;FF)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) public Identifier getSoundId()
      Mappings:
      Namespace Name Mixin selector
      official b Lqd;b()Lwb;
      intermediary method_11460 Lnet/minecraft/class_2660;method_11460()Lnet/minecraft/class_2960;
      named getSoundId Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getSoundId()Lnet/minecraft/util/Identifier;
    • getCategory

      @Environment(CLIENT) public SoundCategory getCategory()
      Mappings:
      Namespace Name Mixin selector
      official c Lqd;c()Laeh;
      intermediary method_11459 Lnet/minecraft/class_2660;method_11459()Lnet/minecraft/class_3419;
      named getCategory Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
    • getX

      @Environment(CLIENT) public double getX()
      Mappings:
      Namespace Name Mixin selector
      official d Lqd;d()D
      intermediary method_11462 Lnet/minecraft/class_2660;method_11462()D
      named getX Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getX()D
    • getY

      @Environment(CLIENT) public double getY()
      Mappings:
      Namespace Name Mixin selector
      official e Lqd;e()D
      intermediary method_11461 Lnet/minecraft/class_2660;method_11461()D
      named getY Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getY()D
    • getZ

      @Environment(CLIENT) public double getZ()
      Mappings:
      Namespace Name Mixin selector
      official f Lqd;f()D
      intermediary method_11465 Lnet/minecraft/class_2660;method_11465()D
      named getZ Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getZ()D
    • getVolume

      @Environment(CLIENT) public float getVolume()
      Mappings:
      Namespace Name Mixin selector
      official g Lqd;g()F
      intermediary method_11463 Lnet/minecraft/class_2660;method_11463()F
      named getVolume Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getVolume()F
    • getPitch

      @Environment(CLIENT) public float getPitch()
      Mappings:
      Namespace Name Mixin selector
      official h Lqd;h()F
      intermediary method_11464 Lnet/minecraft/class_2660;method_11464()F
      named getPitch Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getPitch()F
    • apply

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