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.

Featured Replies

Posted

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!

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)

 

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

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

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.