Class PlayUnboundedSoundS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket
dev.jaxydog.astral.utility.PlayUnboundedSoundS2CPacket
All Implemented Interfaces:
net.minecraft.network.packet.Packet<net.minecraft.network.listener.ClientPlayPacketListener>

public class PlayUnboundedSoundS2CPacket extends net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket
Plays a sound that has its pitch and volume effectively unbounded.

Only positive values are allowed, and any provided negative number will be clamped to 0F.

Since:
1.7.0
  • Field Summary

    Fields inherited from class net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket

    COORDINATE_SCALE
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayUnboundedSoundS2CPacket(net.minecraft.network.PacketByteBuf buffer)
    Creates a new packet.
    PlayUnboundedSoundS2CPacket(net.minecraft.registry.entry.RegistryEntry<net.minecraft.sound.SoundEvent> sound, net.minecraft.sound.SoundCategory category, double x, double y, double z, float volume, float pitch, long seed)
    Creates a new packet.
  • Method Summary

    Methods inherited from class net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket

    apply, getCategory, getPitch, getSeed, getSound, getVolume, getX, getY, getZ, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.network.packet.Packet

    isWritingErrorSkippable
  • Constructor Details

    • PlayUnboundedSoundS2CPacket

      public PlayUnboundedSoundS2CPacket(net.minecraft.registry.entry.RegistryEntry<net.minecraft.sound.SoundEvent> sound, net.minecraft.sound.SoundCategory category, double x, double y, double z, float volume, float pitch, long seed)
      Creates a new packet.
      Parameters:
      sound - The sound event.
      category - The sound category.
      x - The X position.
      y - The Y position.
      z - The Z position.
      volume - The volume.
      pitch - The pitch.
      seed - The randomness seed.
      Since:
      1.7.0
    • PlayUnboundedSoundS2CPacket

      public PlayUnboundedSoundS2CPacket(net.minecraft.network.PacketByteBuf buffer)
      Creates a new packet.
      Parameters:
      buffer - The packet buffer.
      Since:
      1.7.0