Class ClientboundSoundPacket

java.lang.Object
net.minecraft.network.protocol.game.ClientboundSoundPacket
All Implemented Interfaces:
Packet<ClientGamePacketListener>

public class ClientboundSoundPacket extends Object implements Packet<ClientGamePacketListener>
  • Field Details

    • LOCATION_ACCURACY

      public static final float LOCATION_ACCURACY
      See Also:
    • sound

      private final Holder<SoundEvent> sound
    • source

      private final SoundSource source
    • x

      private final int x
    • y

      private final int y
    • z

      private final int z
    • volume

      private final float volume
    • pitch

      private final float pitch
    • seed

      private final long seed
  • Constructor Details

    • ClientboundSoundPacket

      public ClientboundSoundPacket(Holder<SoundEvent> p_263366_, SoundSource p_263375_, double p_263378_, double p_263367_, double p_263394_, float p_263415_, float p_263399_, long p_263409_)
    • ClientboundSoundPacket

      public ClientboundSoundPacket(FriendlyByteBuf p_179422_)
  • Method Details