PROBLEM:
I was wondering if it's possible to list all files inside a resource pack's folder.
For example, let's say I have this a folder called flower, it's ResourceLocation would be example:blocks/flower.
Inside that folder, I have images called rose, dandelion, cyan_rose and etc. Is it possible to save their names for later use?
Note that I want to save them inside a list and then, on a resource pack reload, clear the list to accommodate any changes
SOLUTION:
See diesieben07's response below.