public void setCurrentAction(String actionName, Action actionToRun, boolean loop) {
        this.time = 0.0;
        this.currentAction = actionToRun;
        this.currentActionName = actionName;
        this.loop = loop;
    }
Runs the specified Action, starting from time = 0. This cancels any
Action previously running on this layer.

@param actionName the Action name or null for no action name
@param actionToRun the Action to run (alias created) or null for no
    action
@param loop true if Action must loop. If it is false, Action will be
    removed after finished running
jme3-core/src/main/java/com/jme3/anim/AnimLayer.java