Skip to content

Commit

Permalink
Add API to instantiate a ModNioResourcePack
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Jun 9, 2023
1 parent 13443f7 commit 294923f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public static boolean registerBuiltinResourcePack(Identifier id, ModContainer co
return BuiltinResourcePackHolder.registerBuiltinResourcePack(id, "resourcepacks/" + id.getPath(), container, displayName, activationType);
}

@Nullable
public static ResourcePack createModResourcePack(ModContainer container, ResourceType type) {
// TODO: why is there even an activation type in the pack??
return ModNioResourcePack.create(container.getMetadata().getId(), container, null, type, ResourcePackActivationType.ALWAYS_ENABLED);
}

private ResourcePackHelper() {
}
}

0 comments on commit 294923f

Please sign in to comment.