Class PlaySoundS2CPacket

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

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

    • COORDINATE_SCALE

      public static final float COORDINATE_SCALE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lyz;a:F
      intermediary field_33353 Lnet/minecraft/class_2767;field_33353:F
      named COORDINATE_SCALE Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;COORDINATE_SCALE:F
    • sound

      private final RegistryEntry<SoundEvent> sound
      Mappings:
      Namespace Name Mixin selector
      official b Lyz;b:Lhd;
      intermediary field_12661 Lnet/minecraft/class_2767;field_12661:Lnet/minecraft/class_6880;
      named sound Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;sound:Lnet/minecraft/registry/entry/RegistryEntry;
    • category

      private final SoundCategory category
      Mappings:
      Namespace Name Mixin selector
      official c Lyz;c:Lams;
      intermediary field_12660 Lnet/minecraft/class_2767;field_12660:Lnet/minecraft/class_3419;
      named category Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
    • fixedX

      private final int fixedX
      Mappings:
      Namespace Name Mixin selector
      official d Lyz;d:I
      intermediary field_12659 Lnet/minecraft/class_2767;field_12659:I
      named fixedX Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedX:I
    • fixedY

      private final int fixedY
      Mappings:
      Namespace Name Mixin selector
      official e Lyz;e:I
      intermediary field_12658 Lnet/minecraft/class_2767;field_12658:I
      named fixedY Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedY:I
    • fixedZ

      private final int fixedZ
      Mappings:
      Namespace Name Mixin selector
      official f Lyz;f:I
      intermediary field_12657 Lnet/minecraft/class_2767;field_12657:I
      named fixedZ Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;fixedZ:I
    • volume

      private final float volume
      Mappings:
      Namespace Name Mixin selector
      official g Lyz;g:F
      intermediary field_12656 Lnet/minecraft/class_2767;field_12656:F
      named volume Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;volume:F
    • pitch

      private final float pitch
      Mappings:
      Namespace Name Mixin selector
      official h Lyz;h:F
      intermediary field_12662 Lnet/minecraft/class_2767;field_12662:F
      named pitch Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;pitch:F
    • seed

      private final long seed
      Mappings:
      Namespace Name Mixin selector
      official i Lyz;i:J
      intermediary field_38820 Lnet/minecraft/class_2767;field_38820:J
      named seed Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;seed:J
  • Constructor Details

    • PlaySoundS2CPacket

      public PlaySoundS2CPacket(RegistryEntry<SoundEvent> sound, SoundCategory category, double x, double y, double z, float volume, float pitch, long seed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyz;<init>(Lhd;Lams;DDDFFJ)V
      intermediary <init> Lnet/minecraft/class_2767;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;DDDFFJ)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;DDDFFJ)V
    • PlaySoundS2CPacket

      public PlaySoundS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyz;<init>(Lss;)V
      intermediary <init> Lnet/minecraft/class_2767;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvb;a(Lss;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • getSound

      public RegistryEntry<SoundEvent> getSound()
      Mappings:
      Namespace Name Mixin selector
      official a Lyz;a()Lhd;
      intermediary method_11894 Lnet/minecraft/class_2767;method_11894()Lnet/minecraft/class_6880;
      named getSound Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
    • getCategory

      public SoundCategory getCategory()
      Mappings:
      Namespace Name Mixin selector
      official c Lyz;c()Lams;
      intermediary method_11888 Lnet/minecraft/class_2767;method_11888()Lnet/minecraft/class_3419;
      named getCategory Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
    • getX

      public double getX()
      Mappings:
      Namespace Name Mixin selector
      official d Lyz;d()D
      intermediary method_11890 Lnet/minecraft/class_2767;method_11890()D
      named getX Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getX()D
    • getY

      public double getY()
      Mappings:
      Namespace Name Mixin selector
      official e Lyz;e()D
      intermediary method_11889 Lnet/minecraft/class_2767;method_11889()D
      named getY Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getY()D
    • getZ

      public double getZ()
      Mappings:
      Namespace Name Mixin selector
      official f Lyz;f()D
      intermediary method_11893 Lnet/minecraft/class_2767;method_11893()D
      named getZ Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getZ()D
    • getVolume

      public float getVolume()
      Mappings:
      Namespace Name Mixin selector
      official g Lyz;g()F
      intermediary method_11891 Lnet/minecraft/class_2767;method_11891()F
      named getVolume Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getVolume()F
    • getPitch

      public float getPitch()
      Mappings:
      Namespace Name Mixin selector
      official h Lyz;h()F
      intermediary method_11892 Lnet/minecraft/class_2767;method_11892()F
      named getPitch Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getPitch()F
    • getSeed

      public long getSeed()
      Mappings:
      Namespace Name Mixin selector
      official i Lyz;i()J
      intermediary method_43236 Lnet/minecraft/class_2767;method_43236()J
      named getSeed Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;getSeed()J
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lyz;a(Lve;)V
      intermediary method_11895 Lnet/minecraft/class_2767;method_11895(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V