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

Heya,

So I'm trying to update my project from 1.16.5 to 1.19.2 and it's mostly complete, but there's one part in my main file that I can't figure out the 1.19 equivalent, and that's the entity and block rendering.

Presently, I have this:

private void doClientStuff(final FMLClientSetupEvent event) {
        RenderingRegistry.registerEntityRenderingHandler(EntityInit.ALMIRAJ.get(), AlmirajRenderer::new);
        RenderingRegistry.registerEntityRenderingHandler(EntityInit.BLINK_DOG.get(), BlinkDogRenderer::new);
        RenderingRegistry.registerEntityRenderingHandler(EntityInit.QUIPPER.get(), QuipperRenderer::new);
        RenderingRegistry.registerEntityRenderingHandler(EntityInit.DRYAD.get(), DryadRenderer::new);

        RenderTypeLookup.setRenderLayer(BlockInit.BOOK_STACK.get(), RenderType.cutout());
        RenderTypeLookup.setRenderLayer(BlockInit.BOOK_STACK_SHORT.get(), RenderType.cutout());
        RenderTypeLookup.setRenderLayer(BlockInit.FLAME_LILLY.get(), RenderType.cutout());
        RenderTypeLookup.setRenderLayer(BlockInit.RED_AMANITA_MUSHROOM.get(), RenderType.cutout());
    }

If anyone can let me know the 1.19 equivalent, that would be much appreciated.  Until then, I'll continue looking myself.

Edited by TheMajorN
solved

EntityRenderers are now registered in EntityRenderersEvent.RegisterRenderers.

The RenderType of a Block is now set in the Model, add the following line to the Block Models, below the parent property.

"render_type": "minecraft:cutout",
  • TheMajorN changed the title to SOLVED [1.19.2] Method switching from old version for Renderer

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.