作者:Lucario
项目:PocketMine-M
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);
}
作者:xpyctu
项目:PocketMinePlusPlu
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_RAIN_SPLASH);
}
作者:xpyctu
项目:PocketMinePlusPlu
public function __construct(Vector3 $pos, $scale = 0)
{
parent::__construct($pos, Particle::TYPE_SMOKE, (int) $scale);
}
作者:zzz199
项目:ImagicalMin
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_ENCHANTMENT_TABLE);
}
作者:xpyctu
项目:PocketMinePlusPlu
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_MOB_FLAME);
}
作者:xHF
项目:ImagicalMin
public function __construct(Vector3 $pos, Block $b)
{
parent::__construct($pos, Particle::TYPE_TERRAIN, $b->getDamage() << 8 | $b->getId());
}
作者:ClearSkyTea
项目:ClearSk
public function __construct(Vector3 $pos, $scale = 0)
{
parent::__construct($pos, Particle::TYPE_HEART, $scale);
}
作者:xpyctu
项目:PocketMinePlusPlu
public function __construct(Vector3 $pos, Item $item)
{
parent::__construct($pos, Particle::TYPE_ITEM_BREAK, $item->getId() << 16 | $item->getDamage());
}
作者:Lucario
项目:PocketMine-M
public function __construct(Vector3 $pos, $scale = 0)
{
parent::__construct($pos, 3, (int) $scale);
}
作者:mattiasaxelsso
项目:PocketMine-M
public function __construct(Vector3 $pos, $lifetime = 1)
{
parent::__construct($pos, 8, $lifetime);
}
作者:xpyctu
项目:Genisy
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);
}
作者:owense
项目:PocketMine-0.13.
public function __construct(Vector3 $pos, $scale = 2)
{
parent::__construct($pos, Particle::TYPE_CRITICAL, $scale);
}
作者:robske11
项目:ClearSk
public function __construct(Vector3 $pos, int $data = 0)
{
parent::__construct($pos, Particle::TYPE_BLOCK_FORCE_FIELD, $data);
//TODO: proper encode/decode of data
}
作者:wsj717
项目:PocketMine-M
public function __construct(Vector3 $pos, Item $item)
{
parent::__construct($pos, 9, $item->getId() << 16 | $item->getDamage());
}
作者:owense
项目:PocketMine-0.13.
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_BUBBLE);
}
作者:Lucario
项目:PocketMine-M
public function __construct(Vector3 $pos, $scale = 2)
{
parent::__construct($pos, 2, $scale);
}
作者:ClearSkyTea
项目:ClearSk
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_DRIP_LAVA);
}
作者:mattiasaxelsso
项目:PocketMine-M
public function __construct(Vector3 $pos, Block $b)
{
parent::__construct($pos, 15, $b->getDamage() << 8 | $b->getId());
}
作者:worlds
项目:NIGHTMAR
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_MOB_SPELL_INSTANTANEOUS);
}
作者:xHF
项目:ImagicalMin
public function __construct(Vector3 $pos)
{
parent::__construct($pos, Particle::TYPE_TOWN_AURA);
}