void (long updateTime) { IntList completeRows = new IntArrayList(myRowAnimationStates.size()); for (Int2ObjectMap.Entry<RowAnimationState> entry : myRowAnimationStates.int2ObjectEntrySet()) { if (entry.getValue().doAnimationStep(updateTime)) { completeRows.add(entry.getIntKey()); } } completeRows.forEach((IntConsumer)row -> { myRowAnimationStates.remove(row); }); if (myRowAnimationStates.isEmpty()) { stopAnimation(); } }