Hi,
I created a custom IResourcePack, and now I'm trying to add it to the resource pack list. I'm fairly certain I need to create a "packfinder" and add it to the resource pack list using Minecraft.getInstance().getResourcePackList().addPackFinder(PACKFINDER). However, I can't find anything online about how to create this packfinder, mainly I don't understand what I need to put in the findPacks method. Any help would be much appreciated. Thank you!
new IPackFinder() {
@Override
public void findPacks(Consumer<ResourcePackInfo> infoConsumer, IFactory infoFactory) {
Supplier<IResourcePack> sup = () -> new FacecamResourcePack();
ResourcePackInfo rpi = ResourcePackInfo("facecamrp", true, sup, texta, textb, null, 0, false, null, false);
infoConsumer.accept(null);
}
}