Jump to content

[1.16.4] Adding resource pack to resource pack list


byAdam

Recommended Posts

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);
			}
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.