mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Load Modded Datapacks in DatapackScreen, before world creation (#6913)
This commit is contained in:
1 parent
a3edfd3748
commit
24f3ef5ffe
10 files changed
+112
-39
No files matched your search
@@ -61,6 +61,11 @@ public class ResourcePackLoader
|
||||
resourcePacks.addPackFinder(new LambdaFriendlyPackFinder(packFinder.apply(modResourcePacks, ModFileResourcePack::setPackInfo)));
|
||||
}
|
||||
|
||||
public static List<String> getPackNames()
|
||||
{
|
||||
return modResourcePacks.values().stream().map(pack -> pack.getPackInfo().getName()).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public static <V> Comparator<Map.Entry<String,V>> getSorter() {
|
||||
List<String> order = new ArrayList<>();
|
||||
order.add("vanilla");
|
||||
|
||||
Reference in new issue
Block a user