本文整理匯總了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;
}
示例2: __construct
public function __construct(Block $b)
{
$this->data = $b->getId();
parent::__construct($b, 'break', $this->data, $pitch = 0);
}
示例3: __construct
public function __construct(Vector3 $pos)
{
parent::__construct($pos, 'mob.endermen.portal');
}
示例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;
}
示例5: __construct
public function __construct(Vector3 $pos, $pitch = 0)
{
parent::__construct($pos, 'mob.ghast.fireball', $pitch);
}
示例6: __construct
public function __construct(Vector3 $pos, $pitch = 0)
{
parent::__construct($pos, MainCLass::EVENT_SOUND_EXPLODE, $pitch);
}
示例7: __construct
public function __construct(Vector3 $pos, $pitch = 0)
{
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_ANVIL_FALL, $pitch);
}
示例8: __construct
public function __construct(Vector3 $pos, $pitch = 0)
{
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_GHAST_SHOOT, $pitch);
}
示例9: __construct
public function __construct(Vector3 $pos, $pitch = 0)
{
parent::__construct($pos, MainCLass::EVENT_SOUND_GRAY_SPLASH, $pitch);
}
示例10: __construct
public function __construct(Vector3 $pos, $pitch = 0)
{
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_EXP_PICKUP, $pitch);
}
示例11: __construct
public function __construct(Vector3 $pos, $pitch = 1000)
{
parent::__construct($pos, 'random.click', $pitch);
}
示例12: __construct
public function __construct(Block $b)
{
parent::__construct($b, LevelEventPacket::EVENT_SOUND_BLOCK_PLACE);
$this->data = $b->getId();
}
示例13: __construct
public function __construct(Block $b)
{
parent::__construct($b, '');
#$this->data = $b->getId();
}
示例14: __construct
public function __construct(Vector3 $pos)
{
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_BUTTON_CLICK);
}
示例15: __construct
public function __construct(Vector3 $pos, $instrument = self::INSTRUMENT_PIANO, $pitch = 0)
{
parent::__construct($pos, 0, $pitch);
$this->instrument = $instrument;
$this->pitch = $pitch;
}