public void update(float tpf) {

        // Cleanup any states pending
        terminatePending();

        // Initialize any states pending
        initializePending();

        // Update enabled states
        AppState[] array = getStates();
        for (AppState state : array) {
            if (state.isEnabled()) {
                if (app.getAppProfiler() != null) {
                    app.getAppProfiler().appSubStep(state.getClass().getSimpleName());
                }
                state.update(tpf);
            }
        }
    }
Calls update for attached states, do not call directly.
@param tpf Time per frame.
jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java