本文整理汇总了PHP中pocketmine\level\sound\GenericSound::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP GenericSound::__construct方法的具体用法?PHP GenericSound::__construct怎么用?PHP GenericSound::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pocketmine\level\sound\GenericSound
的用法示例。
在下文中一共展示了GenericSound::__construct方法的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;
}