Jump to content

SOLVED [1.19.2] Method switching from old version for Renderer


TheMajorN

Recommended Posts

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
Link to comment
Share on other sites

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

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



×
×
  • Create New...

Important Information

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