Posted July 9, 20178 yr Hi, I have a custom entity, and I cant figure out how to register the renders for it. I see the way it works has changed a lot in 1.11. I really don't know how to approach this. Any help is appreciated, thanks!
July 10, 20178 yr Hey I'm doing something similar. I have a RenderFoo.java class and I used to do this in 1.10.2: public void worldLoad(Load event) { if (event.getWorld().isRemote) { RenderFoo render = new RenderFoo(Minecraft.getMinecraft().getRenderManager(), new ModelFoo(), 0.7F); Minecraft.getMinecraft().getRenderManager().entityRenderMap.put(Foo.class, render); } } But now in 1.12 (I think this works for 1.11?): if (event.getSide().isClient()) { RenderingRegistry.registerEntityRenderingHandler(Foo.class, RenderFoo::new); Inside of public void preInit(FMLPreInitializationEvent event)
July 10, 20178 yr Author 1 hour ago, zennyrpg said: Hey I'm doing something similar. I have a RenderFoo.java class and I used to do this in 1.10.2: public void worldLoad(Load event) { if (event.getWorld().isRemote) { RenderFoo render = new RenderFoo(Minecraft.getMinecraft().getRenderManager(), new ModelFoo(), 0.7F); Minecraft.getMinecraft().getRenderManager().entityRenderMap.put(Foo.class, render); } } But now in 1.12 (I think this works for 1.11?): if (event.getSide().isClient()) { RenderingRegistry.registerEntityRenderingHandler(Foo.class, RenderFoo::new); Inside of public void preInit(FMLPreInitializationEvent event) hmmm, I put that in my Main class under pre init event, it didn't work, should it go in either of the proxys?
July 11, 20178 yr Author On 7/10/2017 at 4:05 AM, diesieben07 said: Define "didn't work". Yes, rendering registration must happen from your client proxy. Nothing happened, it didn't render
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.