public function __construct(Vector3 $pos)
 {
     parent::__construct($pos, LevelEventPacket::EVENT_SOUND_ENDERMAN_TELEPORT);
 }
Example #2
0
 public function __construct(Vector3 $pos, $pitch = 0)
 {
     parent::__construct($pos, LevelEventPacket::EVENT_SOUND_CLICK, $pitch);
 }
Example #3
0
 public function __construct(Vector3 $pos, $instrument = self::INSTRUMENT_PIANO, $pitch = 0)
 {
     parent::__construct($pos, LevelEventPacket::EVENT_SOUND_ANVIL_BREAK, $pitch);
     $this->instrument = $instrument;
     $this->pitch = $pitch;
 }