I'm trying to create a custom entity that extends the VillagerEntity class and uses a player model. Here is my code:
public class RegistryHandler {
public static void init(){
RenderingRegistry.registerEntityRenderingHandler(MyEntity.class, MyRenderFactory.INSTANCE);
}
}
The problem I have is that the registerEntityRenderingHandler method won't accept MyEntity.class as a parameter as it says it is of type Class<MyEntity> when it should be EntityType<T>