WorldSoundEvent
Extends WorldEvent
Implements Cancellable
Called when a sound is played in a world
Methods
__construct()
php
public function __construct(\pocketmine\world\World $world, \pocketmine\world\sound\Sound $sound, \pocketmine\math\Vector3 $position, array $recipients)getPosition()
php
public function getPosition() : \pocketmine\math\Vector3getRecipients()
php
public function getRecipients() : arraygetSound()
php
public function getSound() : \pocketmine\world\sound\SoundsetRecipients()
php
public function setRecipients(array $recipients) : voidsetSound()
php
public function setSound(\pocketmine\world\sound\Sound $sound) : void