I've created a mod with custom blocks and items and their textures render without issue. However, I've created a subclass of EntityAnimal and used a model generated with Techne as well as the appropriate Render subclass. When I create an instance of my Entity, I only see it's shadow, here it's sounds, etc. Running in debug, I also see that it's render class is being used as the following method is called:
protected ResourceLocation func_110775_a(Entity par1Entity) {
new ResourceLocation("mymod:textures/entities/custom.png");
}
In pre-init, I'm doing:
RenderingRegistry.registerEntityRenderingHandler(
EntityCustom.class,
new RenderCustom(new ModelCustom(), 0.3f));
In initialization, I'm doing this:
public void load(FMLInitializationEvent event) {
...
EntityRegistry.registerGlobalEntityID(
Entity.class,
"custom", EntityRegistry.findGlobalUniqueEntityId(),
3515848,
12102);
EntityRegistry.registerModEntity(EntityCustom.class, "custom", 1, this, 80, 3, true);
EntityRegistry.addSpawn(
EntityCustom.class, 20, 1, 5, EnumCreatureType.creature,
BiomeGenBase.plains);
LanguageRegistry.instance().addStringLocalization("entity.custom.name", "Custom");
}
I also see this in the logs though I see it even without my custom entity:
2013-08-25 14:13:47 [sEVERE] [Minecraft-Client] ########## GL ERROR ##########
2013-08-25 14:13:47 [sEVERE] [Minecraft-Client] @ Post startup
2013-08-25 14:13:47 [sEVERE] [Minecraft-Client] 1281: Invalid value
Not sure what to try next.