mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 15:03:04 +00:00
26.1 Update
Minecraft is now Unobfuscated and requires Java 25 Lots of changes/code cleanup. See https://github.com/MinecraftForge/MinecraftForge-Experimental/tree/26.1-dev for non-squashed commits. Co-authored-by: Paint_Ninja <[email protected]>
This commit is contained in:
1558 files changed
+11117
-16291
No files matched your search
@@ -31,7 +31,7 @@ public class AddPackFinderEventTest {
|
||||
@SubscribeEvent
|
||||
public void addPackFinders(AddPackFindersEvent event) {
|
||||
if (event.getPackType() == PackType.CLIENT_RESOURCES) {
|
||||
var resourcePath = ModList.get().getModFileById(MODID).getFile().findResource("test_nested_resource_pack");
|
||||
var resourcePath = ModList.getModFileById(MODID).getFile().findResource("test_nested_resource_pack");
|
||||
var supplier = new PathResourcesSupplier(resourcePath, false);
|
||||
var pack = Pack.readMetaAndCreate("builtin/add_pack_finders_test", Component.literal("display name"), false, supplier, PackType.CLIENT_RESOURCES, Pack.Position.BOTTOM, PackSource.BUILT_IN);
|
||||
event.addRepositorySource((packConsumer) -> packConsumer.accept(pack));
|
||||
|
||||
Reference in new issue
Block a user