This is the method that controls the texture of your villager.
To register your renderer use RenderingRegistry::registerEntityRenderingHandler(Class, IRenderFactory) method.
Class parameter is your entity class.
IRenderFactory is an interface. You need to provide your own implementation of it. It only has one method, the createRenderFor that takes mc's RenderManager as a parameter and needs to return a render object.