public RenderQueue.ShadowMode getShadowMode() {
        if (shadowMode != RenderQueue.ShadowMode.Inherit) {
            return shadowMode;
        } else if (parent != null) {
            return parent.getShadowMode();
        } else {
            return ShadowMode.Off;
        }
    }
@return The shadow mode of this spatial, if the local shadow
mode is set to inherit, then the parent's shadow mode is returned.

@see Spatial#setShadowMode(com.jme3.renderer.queue.RenderQueue.ShadowMode)
@see ShadowMode
jme3-core/src/main/java/com/jme3/scene/Spatial.java