Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.9] registerEntityRenderingHandler marked as deprecated whath replaceit?

Featured Replies

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

 

 

 

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.

  • 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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.