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
named net/minecraft/network/packet/s2c/play/PlaySoundS2CPacket
intermediary net/minecraft/class_2767
official afp
  • Field Details

    • CODEC

      public static final PacketCodec<RegistryByteBuf,PlaySoundS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47995 Lnet/minecraft/class_2767;field_47995:Lnet/minecraft/class_9139;
      official a Lafp;a:Lyx;
    • COORDINATE_SCALE

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

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

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

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

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

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

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

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

      private final long seed
      Mappings:
      Namespace Name Mixin selector
      named seed Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;seed:J
      intermediary field_38820 Lnet/minecraft/class_2767;field_38820:J
      official j Lafp;j: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
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/sound/SoundCategory;DDDFFJ)V
      intermediary <init> Lnet/minecraft/class_2767;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_3419;DDDFFJ)V
      official <init> Lafp;<init>(Ljm;Lavq;DDDFFJ)V
    • PlaySoundS2CPacket

      private PlaySoundS2CPacket(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2767;<init>(Lnet/minecraft/class_9129;)V
      official <init> Lafp;<init>(Lwk;)V
  • Method Details

    • write

      private void write(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/PlaySoundS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary method_55942 Lnet/minecraft/class_2767;method_55942(Lnet/minecraft/class_9129;)V
      official a Lafp;a(Lwk;)V
    • getPacketId

      public PacketType<PlaySoundS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzg;a()Lzi;
    • apply

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

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

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

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

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

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

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

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

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