pocketmine\event\entity\EntityGenerateEvent::__construct PHP Method

__construct() public method

public __construct ( Position $pos, integer $entityType, integer $cause = self::CAUSE_MOB_SPAWNER )
$pos pocketmine\level\Position
$entityType integer
$cause integer
    public function __construct(Position $pos, int $entityType, int $cause = self::CAUSE_MOB_SPAWNER)
    {
        $this->position = $pos;
        $this->entityType = $entityType;
        $this->cause = $cause;
    }