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 to
intermediary net/minecraft/class_2660
named net/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket
  • Field Details

    • COORDINATE_SCALE

      public static final float COORDINATE_SCALE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lto;a:F
      intermediary field_33327 Lnet/minecraft/class_2660;field_33327:F
      named COORDINATE_SCALE Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;COORDINATE_SCALE:F
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official b Lto;b:Laaj;
      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 final SoundCategory category
      Mappings:
      Namespace Name Mixin selector
      official c Lto;c:Lajf;
      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 final int fixedX
      Mappings:
      Namespace Name Mixin selector
      official d Lto;d:I
      intermediary field_12169 Lnet/minecraft/class_2660;field_12169:I
      named fixedX Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;fixedX:I
    • fixedY

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

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

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

      private final float pitch
      Mappings:
      Namespace Name Mixin selector
      official h Lto;h:F
      intermediary field_12172 Lnet/minecraft/class_2660;field_12172:F
      named pitch Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;pitch:F
    • seed

      private final long seed
      Mappings:
      Namespace Name Mixin selector
      official i Lto;i:J
      intermediary field_38818 Lnet/minecraft/class_2660;field_38818:J
      named seed Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;seed:J
  • Constructor Details

    • PlaySoundIdS2CPacket

      public PlaySoundIdS2CPacket(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, long seed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lto;<init>(Laaj;Lajf;Ldvt;FFJ)V
      intermediary <init> Lnet/minecraft/class_2660;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_3419;Lnet/minecraft/class_243;FFJ)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/util/math/Vec3d;FFJ)V
    • PlaySoundIdS2CPacket

      public PlaySoundIdS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lto;<init>(Lqx;)V
      intermediary <init> Lnet/minecraft/class_2660;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;<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 Lso;a(Lqx;)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

      public Identifier getSoundId()
      Mappings:
      Namespace Name Mixin selector
      official b Lto;b()Laaj;
      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

      public SoundCategory getCategory()
      Mappings:
      Namespace Name Mixin selector
      official c Lto;c()Lajf;
      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

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

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

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

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

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

      public long getSeed()
      Mappings:
      Namespace Name Mixin selector
      official i Lto;i()J
      intermediary method_43234 Lnet/minecraft/class_2660;method_43234()J
      named getSeed Lnet/minecraft/network/packet/s2c/play/PlaySoundIdS2CPacket;getSeed()J
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lto;a(Lsr;)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