Fixed particle constructor

This commit is contained in:
Shoghi Cervantes 2015-03-18 21:49:01 +01:00
parent c2a3298a7e
commit f21e457dc0
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
20 changed files with 20 additions and 20 deletions

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class BubbleParticle extends GenericParticle{ class BubbleParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 1); parent::__construct($pos, 1);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class CriticalParticle extends GenericParticle{ class CriticalParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 2); parent::__construct($pos, 2);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class DustParticle extends GenericParticle{ class DustParticle extends GenericParticle{
public function __construct(Vector3 $pos, $r, $g, $b, $a = 255){ public function __construct(Vector3 $pos, $r, $g, $b, $a = 255){
parent::__construct($pos->x, $pos->y, $pos->z, 22, (($a & 0xff) << 24) | (($r & 0xff) << 16) | (($g & 0xff) << 8) | ($b & 0xff)); parent::__construct($pos, 22, (($a & 0xff) << 24) | (($r & 0xff) << 16) | (($g & 0xff) << 8) | ($b & 0xff));
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class EnchantParticle extends GenericParticle{ class EnchantParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 23); parent::__construct($pos, 23);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class EntityFlameParticle extends GenericParticle{ class EntityFlameParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 13); parent::__construct($pos, 13);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class ExplodeParticle extends GenericParticle{ class ExplodeParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 4); parent::__construct($pos, 4);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class FlameParticle extends GenericParticle{ class FlameParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 5); parent::__construct($pos, 5);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class HeartParticle extends GenericParticle{ class HeartParticle extends GenericParticle{
public function __construct(Vector3 $pos, $scale = 0){ public function __construct(Vector3 $pos, $scale = 0){
parent::__construct($pos->x, $pos->y, $pos->z, 14, $scale); parent::__construct($pos, 14, $scale);
} }
} }

View File

@ -34,7 +34,7 @@ class InkCloudParticle extends Particle{
protected $count = 1; protected $count = 1;
public function __construct(Vector3 $pos, $count = 1){ public function __construct(Vector3 $pos, $count = 1){
parent::__construct($pos->x, $pos->y, $pos->z); parent::__construct($pos);
$this->count = (int) $count; $this->count = (int) $count;
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class InkParticle extends GenericParticle{ class InkParticle extends GenericParticle{
public function __construct(Vector3 $pos, $scale = 0){ public function __construct(Vector3 $pos, $scale = 0){
parent::__construct($pos->x, $pos->y, $pos->z, 25, $scale); parent::__construct($pos, 25, $scale);
} }
} }

View File

@ -26,6 +26,6 @@ use pocketmine\item\Item;
class ItemBreakParticle extends GenericParticle{ class ItemBreakParticle extends GenericParticle{
public function __construct(Vector3 $pos, Item $item){ public function __construct(Vector3 $pos, Item $item){
parent::__construct($pos->x, $pos->y, $pos->z, 9, ($item->getId() << 16) | $item->getDamage()); parent::__construct($pos, 9, ($item->getId() << 16) | $item->getDamage());
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class LavaDripParticle extends GenericParticle{ class LavaDripParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 21); parent::__construct($pos, 21);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class LavaParticle extends GenericParticle{ class LavaParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 6); parent::__construct($pos, 6);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class PortalParticle extends GenericParticle{ class PortalParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 17); parent::__construct($pos, 17);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class RedstoneParticle extends GenericParticle{ class RedstoneParticle extends GenericParticle{
public function __construct(Vector3 $pos, $lifetime = 1){ public function __construct(Vector3 $pos, $lifetime = 1){
parent::__construct($pos->x, $pos->y, $pos->z, 8, $lifetime); parent::__construct($pos, 8, $lifetime);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class SmokeParticle extends GenericParticle{ class SmokeParticle extends GenericParticle{
public function __construct(Vector3 $pos, $scale = 0){ public function __construct(Vector3 $pos, $scale = 0){
parent::__construct($pos->x, $pos->y, $pos->z, 3, (int) $scale); parent::__construct($pos, 3, (int) $scale);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class SplashParticle extends GenericParticle{ class SplashParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 18); parent::__construct($pos, 18);
} }
} }

View File

@ -26,6 +26,6 @@ use pocketmine\math\Vector3;
class TerrainParticle extends GenericParticle{ class TerrainParticle extends GenericParticle{
public function __construct(Vector3 $pos, Block $b){ public function __construct(Vector3 $pos, Block $b){
parent::__construct($pos->x, $pos->y, $pos->z, 15, ($b->getId() << 8) | $b->getDamage()); parent::__construct($pos, 15, ($b->getId() << 8) | $b->getDamage());
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class WaterDripParticle extends GenericParticle{ class WaterDripParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 20); parent::__construct($pos, 20);
} }
} }

View File

@ -25,6 +25,6 @@ use pocketmine\math\Vector3;
class WaterParticle extends GenericParticle{ class WaterParticle extends GenericParticle{
public function __construct(Vector3 $pos){ public function __construct(Vector3 $pos){
parent::__construct($pos->x, $pos->y, $pos->z, 19); parent::__construct($pos, 19);
} }
} }