Jump to content

Recommended Posts

Posted

 

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 ??

 

 

 

Posted

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]8)[/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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.