pocketmine\entity\Effect::__construct PHP Method

__construct() public method

public __construct ( $id, $name, $r, $g, $b, $isBad = false )
    public function __construct($id, $name, $r, $g, $b, $isBad = false)
    {
        $this->id = $id;
        $this->name = $name;
        $this->bad = (bool) $isBad;
        $this->setColor($r, $g, $b);
    }