Class PlaySoundFromEntityS2CPacket

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

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

    • sound

      private SoundEvent sound
      Mappings:
      Namespace Name Mixin selector
      official a Lse;a:Laef;
      intermediary field_12642 Lnet/minecraft/class_2765;field_12642:Lnet/minecraft/class_3414;
      named sound Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;sound:Lnet/minecraft/sound/SoundEvent;
    • category

      private SoundCategory category
      Mappings:
      Namespace Name Mixin selector
      official b Lse;b:Laeh;
      intermediary field_12641 Lnet/minecraft/class_2765;field_12641:Lnet/minecraft/class_3419;
      named category Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;category:Lnet/minecraft/sound/SoundCategory;
    • entityId

      private int entityId
      Mappings:
      Namespace Name Mixin selector
      official c Lse;c:I
      intermediary field_12640 Lnet/minecraft/class_2765;field_12640:I
      named entityId Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;entityId:I
    • volume

      private float volume
      Mappings:
      Namespace Name Mixin selector
      official d Lse;d:F
      intermediary field_12639 Lnet/minecraft/class_2765;field_12639:F
      named volume Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;volume:F
    • pitch

      private float pitch
      Mappings:
      Namespace Name Mixin selector
      official e Lse;e:F
      intermediary field_12638 Lnet/minecraft/class_2765;field_12638:F
      named pitch Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;pitch:F
  • Constructor Details

    • PlaySoundFromEntityS2CPacket

      public PlaySoundFromEntityS2CPacket()
    • PlaySoundFromEntityS2CPacket

      public PlaySoundFromEntityS2CPacket​(SoundEvent sound, SoundCategory category, Entity entity, float volume, float pitch)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lse;<init>(Laef;Laeh;Laqv;FF)V
      intermediary <init> Lnet/minecraft/class_2765;<init>(Lnet/minecraft/class_3414;Lnet/minecraft/class_3419;Lnet/minecraft/class_1297;FF)V
      named <init> Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;<init>(Lnet/minecraft/sound/SoundEvent;Lnet/minecraft/sound/SoundCategory;Lnet/minecraft/entity/Entity;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
    • getSound

      @Environment(CLIENT) public SoundEvent getSound()
      Mappings:
      Namespace Name Mixin selector
      official b Lse;b()Laef;
      intermediary method_11882 Lnet/minecraft/class_2765;method_11882()Lnet/minecraft/class_3414;
      named getSound Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getSound()Lnet/minecraft/sound/SoundEvent;
    • getCategory

      @Environment(CLIENT) public SoundCategory getCategory()
      Mappings:
      Namespace Name Mixin selector
      official c Lse;c()Laeh;
      intermediary method_11881 Lnet/minecraft/class_2765;method_11881()Lnet/minecraft/class_3419;
      named getCategory Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getCategory()Lnet/minecraft/sound/SoundCategory;
    • getEntityId

      @Environment(CLIENT) public int getEntityId()
      Mappings:
      Namespace Name Mixin selector
      official d Lse;d()I
      intermediary method_11883 Lnet/minecraft/class_2765;method_11883()I
      named getEntityId Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getEntityId()I
    • getVolume

      @Environment(CLIENT) public float getVolume()
      Mappings:
      Namespace Name Mixin selector
      official e Lse;e()F
      intermediary method_11885 Lnet/minecraft/class_2765;method_11885()F
      named getVolume Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getVolume()F
    • getPitch

      @Environment(CLIENT) public float getPitch()
      Mappings:
      Namespace Name Mixin selector
      official f Lse;f()F
      intermediary method_11880 Lnet/minecraft/class_2765;method_11880()F
      named getPitch Lnet/minecraft/network/packet/s2c/play/PlaySoundFromEntityS2CPacket;getPitch()F
    • apply

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