當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sound\GenericSound類代碼示例

本文整理匯總了PHP中pocketmine\level\sound\GenericSound的典型用法代碼示例。如果您正苦於以下問題:PHP GenericSound類的具體用法?PHP GenericSound怎麽用?PHP GenericSound使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了GenericSound類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct(Vector3 $pos, $instrument = self::INSTRUMENT_PIANO, $pitch = 0)
 {
     parent::__construct($pos, 64, $pitch);
     $this->instrument = $instrument;
     $this->pitch = $pitch;
     $this->type = $this->instrument;
     $this->unknownBool = true;
     $this->unknownBool2 = true;
 }
開發者ID:robske110,項目名稱:ClearSky,代碼行數:9,代碼來源:NoteblockSound.php

示例2: __construct

 public function __construct(Block $b)
 {
     $this->data = $b->getId();
     parent::__construct($b, 'break', $this->data, $pitch = 0);
 }
開發者ID:robske110,項目名稱:ClearSky,代碼行數:5,代碼來源:BlockBreakSound.php

示例3: __construct

 public function __construct(Vector3 $pos)
 {
     parent::__construct($pos, 'mob.endermen.portal');
 }
開發者ID:ClearSkyTeam,項目名稱:ClearSky,代碼行數:4,代碼來源:EndermanTeleportSound.php

示例4: __construct

 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;
 }
開發者ID:orlando092,項目名稱:ImagicalMine,代碼行數:6,代碼來源:NoteblockSound.php

示例5: __construct

 public function __construct(Vector3 $pos, $pitch = 0)
 {
     parent::__construct($pos, 'mob.ghast.fireball', $pitch);
 }
開發者ID:ClearSkyTeam,項目名稱:ClearSky,代碼行數:4,代碼來源:BlazeShootSound.php

示例6: __construct

 public function __construct(Vector3 $pos, $pitch = 0)
 {
     parent::__construct($pos, MainCLass::EVENT_SOUND_EXPLODE, $pitch);
 }
開發者ID:beito123,項目名稱:PocketMine-MP-Plugins,代碼行數:4,代碼來源:ExplodeSound.php

示例7: __construct

 public function __construct(Vector3 $pos, $pitch = 0)
 {
     parent::__construct($pos, LevelEventPacket::EVENT_SOUND_ANVIL_FALL, $pitch);
 }
開發者ID:owensel,項目名稱:PocketMine-0.13.0,代碼行數:4,代碼來源:AnvilFallSound.php

示例8: __construct

 public function __construct(Vector3 $pos, $pitch = 0)
 {
     parent::__construct($pos, LevelEventPacket::EVENT_SOUND_GHAST_SHOOT, $pitch);
 }
開發者ID:xHFx,項目名稱:ImagicalMine,代碼行數:4,代碼來源:GhastShootSound.php

示例9: __construct

 public function __construct(Vector3 $pos, $pitch = 0)
 {
     parent::__construct($pos, MainCLass::EVENT_SOUND_GRAY_SPLASH, $pitch);
 }
開發者ID:beito123,項目名稱:PocketMine-MP-Plugins,代碼行數:4,代碼來源:GraySplashSound.php

示例10: __construct

 public function __construct(Vector3 $pos, $pitch = 0)
 {
     parent::__construct($pos, LevelEventPacket::EVENT_SOUND_EXP_PICKUP, $pitch);
 }
開發者ID:iTXTech,項目名稱:Genisys,代碼行數:4,代碼來源:ExpPickupSound.php

示例11: __construct

 public function __construct(Vector3 $pos, $pitch = 1000)
 {
     parent::__construct($pos, 'random.click', $pitch);
 }
開發者ID:ClearSkyTeam,項目名稱:ClearSky,代碼行數:4,代碼來源:ButtonClickSound.php

示例12: __construct

 public function __construct(Block $b)
 {
     parent::__construct($b, LevelEventPacket::EVENT_SOUND_BLOCK_PLACE);
     $this->data = $b->getId();
 }
開發者ID:iTXTech,項目名稱:Genisys,代碼行數:5,代碼來源:BlockPlaceSound.php

示例13: __construct

 public function __construct(Block $b)
 {
     parent::__construct($b, '');
     #$this->data = $b->getId();
 }
開發者ID:ClearSkyTeam,項目名稱:ClearSky,代碼行數:5,代碼來源:BlockPlaceSound.php

示例14: __construct

 public function __construct(Vector3 $pos)
 {
     parent::__construct($pos, LevelEventPacket::EVENT_SOUND_BUTTON_CLICK);
 }
開發者ID:xpyctum,項目名稱:Genisys,代碼行數:4,代碼來源:ButtonClickSound.php

示例15: __construct

 public function __construct(Vector3 $pos, $instrument = self::INSTRUMENT_PIANO, $pitch = 0)
 {
     parent::__construct($pos, 0, $pitch);
     $this->instrument = $instrument;
     $this->pitch = $pitch;
 }
開發者ID:MrDoni98,項目名稱:Genisys,代碼行數:6,代碼來源:NoteblockSound.php


注:本文中的pocketmine\level\sound\GenericSound類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。