FML/Controls/Control.php
public function addScriptFeature(ScriptFeature $scriptFeature)
    {
        if (!in_array($scriptFeature, $this->scriptFeatures, true)) {
            array_push($this->scriptFeatures, $scriptFeature);
        }
        return $this;
    }
public function addScriptFeature(ScriptFeature $scriptFeature)
    {
        if (!in_array($scriptFeature, $this->scriptFeatures, true)) {
            array_push($this->scriptFeatures, $scriptFeature);
        }
        return $this;
    }
public function addScriptFeature ( ScriptFeature $ scriptFeature ) { if ( ! in_array ( $ scriptFeature , $ this -> scriptFeatures , true ) ) { array_push ( $ this -> scriptFeatures , $ scriptFeature ) ; } return $ this ; }
Add a new Script Feature

@api
@param ScriptFeature $scriptFeature Script Feature
@return static
Add a new Script Feature