I'm having a strange issue where when I register two custom entities (a Deer and Baker). They are both working exactly as expected except that it uses the model and texture of the first entity, the Deer, for the second as well, the Baker. If I were doing something wrong with my Baker entity's model/texture/resource location stuff I'd expect it to just not load in or crash, but instead it loads in perfectly as my new Deer entity.
Register Entity Renders
RenderingRegistry.registerEntityRenderingHandler(EntityDeer.class, new IRenderFactory<EntityDeer>() {
@Override
public Render<? super EntityDeer> createRenderFor(RenderManager manager){
return new RenderDeer(manager);
}
});
RenderingRegistry.registerEntityRenderingHandler(EntityBaker.class, new IRenderFactory<EntityBaker>() {
@Override
public Render<? super EntityBaker> createRenderFor(RenderManager manager){
return new RenderNPC(RenderNPC.bakerTexture, manager);
}
});
This code is called from inside my preInit for Client Side. My RenderNPC class is essentially a clone of the RenderVillager class since I'm using the ModelVillager for it. I'm wondering if maybe I have to do things differently when registering multiple RenderingHandlers?
If any more code/info is needed, let me know.
EDIT:
I feel dumb for not trying to render it by itself without loading in the Deer. I've done so now and I've confirmed that the Baker entity doesn't render at all - its still there but invisible. I've been going over my code and all the pathing is correct, everything is lowercase, I'm not sure what to do next.