本文整理汇总了PHP中pocketmine\level\particle\GenericParticle类的典型用法代码示例。如果您正苦于以下问题:PHP GenericParticle类的具体用法?PHP GenericParticle怎么用?PHP GenericParticle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GenericParticle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(Vector3 $pos, $r, $g, $b, $a = 255)
{
parent::__construct($pos, 22, ($a & 0xff) << 24 | ($r & 0xff) << 16 | ($g & 0xff) << 8 | $b & 0xff);
}
示例2: __construct
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_RAIN_SPLASH);
}
示例3: __construct
public function __construct(Vector3 $pos, $scale = 0)
{
parent::__construct($pos, Particle::TYPE_SMOKE, (int) $scale);
}
示例4: __construct
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_ENCHANTMENT_TABLE);
}
示例5: __construct
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_MOB_FLAME);
}
示例6: __construct
public function __construct(Vector3 $pos, Block $b)
{
parent::__construct($pos, Particle::TYPE_TERRAIN, $b->getDamage() << 8 | $b->getId());
}
示例7: __construct
public function __construct(Vector3 $pos, $scale = 0)
{
parent::__construct($pos, Particle::TYPE_HEART, $scale);
}
示例8: __construct
public function __construct(Vector3 $pos, Item $item)
{
parent::__construct($pos, Particle::TYPE_ITEM_BREAK, $item->getId() << 16 | $item->getDamage());
}
示例9: __construct
public function __construct(Vector3 $pos, $scale = 0)
{
parent::__construct($pos, 3, (int) $scale);
}
示例10: __construct
public function __construct(Vector3 $pos, $lifetime = 1)
{
parent::__construct($pos, 8, $lifetime);
}
示例11: __construct
public function __construct(Vector3 $pos, $r = 0, $g = 0, $b = 0, $a = 255)
{
parent::__construct($pos, LevelEventPacket::EVENT_PARTICLE_SPLASH, ($a & 0xff) << 24 | ($r & 0xff) << 16 | ($g & 0xff) << 8 | $b & 0xff);
}
示例12: __construct
public function __construct(Vector3 $pos, $scale = 2)
{
parent::__construct($pos, Particle::TYPE_CRITICAL, $scale);
}
示例13: __construct
public function __construct(Vector3 $pos, int $data = 0)
{
parent::__construct($pos, Particle::TYPE_BLOCK_FORCE_FIELD, $data);
//TODO: proper encode/decode of data
}
示例14: __construct
public function __construct(Vector3 $pos, Item $item)
{
parent::__construct($pos, 9, $item->getId() << 16 | $item->getDamage());
}
示例15: __construct
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_BUBBLE);
}