public List<Animation> getAnimations() {
        List<Animation> old = new LinkedList<>(animations);
        animations.clear();
        for (Animation a : old) {
            if (a.isAlive()) {
                animations.add(a);
            }
        }
        return animations;
    }