public float getAnimMaxTime() {
        return animation != null ? animation.getLength() : 0f;
    }
@return The length of the currently playing animation, or zero
if no animation is playing.

@see AnimChannel#getTime()
jme3-core/src/main/java/com/jme3/animation/AnimChannel.java