Posted March 25, 20169 yr good days today i been working in the bullets for mi guns and I'm using entity arrow as base actually i made the render works, soo is working but i see that the "registerEntityRenderingHandler" part from RenderingRegistry.registerEntityRenderingHandler(mercenarymod.entidades.balas.bala9mmEntity.class, new mercenarymod.entidades.balas.bala9mmRender(Minecraft.getMinecraft().getRenderManager()) ); is underlining, is market as deprecated ##### soo what has replace it ?? and how i declare this render with that new method ##### if i leave this this way could it become troublesome in the future ??
March 25, 20169 yr Use RenderingRegistry#registerEntityRenderingHandler(Class<T>, IRenderFactory<? super T>) in preInit to register your renderer. To implement IRenderFactory , I suggest using an anonymous class (if you're targeting Java 6/7) or a constructor method reference (if you're targeting Java [nobbc][/nobbc]. The deprecated RenderingRegistry#registerEntityRenderingHandler(Class<? extends Entity>, Render<? extends Entity>) overload will probably be removed in a future version of Forge, likely one for 1.9 or 1.9.1. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
March 25, 20169 yr Author soo the there is not yet replace for soo we remain using RenderingRegistry#registerEntityRenderingHandler for a while until they remove and replace it whith something else ?
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.