pocketmine\level\Explosion::__construct PHP Method

__construct() public method

public __construct ( Position $center, $size, $what = null, boolean $dropItem = true )
$center Position
$dropItem boolean
    public function __construct(Position $center, $size, $what = null, bool $dropItem = true)
    {
        $this->level = $center->getLevel();
        $this->source = $center;
        $this->size = max($size, 0);
        $this->what = $what;
        $this->dropItem = $dropItem;
    }