public boolean hasState(AppState state) {
        synchronized (states) {
            return states.contains(state) || initializing.contains(state);
        }
    }
Check if a state is attached or not.

@param state The state to check
@return True if the state is currently attached to this AppStateManager.

@see AppStateManager#attach(com.jme3.app.state.AppState)
jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java