Closed tzachshabtay closed 6 years ago
There's something that attracts my attention here, is that priority is a member of the resource pack interface. May I propose that it might better be a part of the resource pack list, or list item (depends on how they are stored) instead? My reasoning here is that this interface is strictly for reading resources, a resource pack's only concern is about its own resources; and priority is a concept that is applied when several resource packs are used together. Or rather when some external entity (resource manager?) decides an order in which to use these packs.
Refactored the resource loader (based on suggestions from @ivan-mogilko ) to have multiple resource packs (and can be configured to add more). The 2 existing functionalities of loading embedded resources and loading resources from the file system were extracted into 2 built in resource packs.