Closed livejar closed 3 years ago
Btw it partially covers what was suggested in https://github.com/InventivetalentDev/AnimatedFrames/issues/190
Yeah please keep the existing method as is and add a new one. Also wrap it in a new array list similar to the existing method - don't want stuff modifying the list directly.
Why
It would be nice to have the
/aflist
output sorted alphabetically.How
In FrameManager, the AnimatedFrames in
frameMap
are already sorted because it's aTreeMap
; but it seems that the ordering is lost when doingnew HashSet<>(frameMap.values())
.By simply keeping the Collection
frameMap.values()
(of the TreeMap implementation) it seems to keep the order. I modified the return type of the existing method, which is used at other places but I don't know if they do need a HashSet or are fine with this Collection. Maybe it's better to create a newgetSortedFrames()
method ?