Jump to content

Recommended Posts

Posted

So I recently decided I would finally create an entity. I had almost finished everything including the render but as I spawn it in game it doesn't seem to render right...

 

Its probably got to do with the fact that I'm using the old RenderingRegistry#registerEntityRenderingHandler() method that is deprecated... The entity is supposed to just be effectively a floating block...

 

Here are the relevant files:

 

EntityHeartFamiliar:

 

  Reveal hidden contents

 

 

RendererHeartFamiliar:

 

  Reveal hidden contents

 

 

ModEntities:

 

  Reveal hidden contents

 

 

ItemHeart:

 

  Reveal hidden contents

 

 

ModEntities#registerEntities() called in CommonProxy#preInit(). ModEntities#registerRenderers() is called in ClientProxy#init().

 

I don't really know what it is wrong, so if possible could someone help me.

If you need any more code, let me know.

No signature for you!

Posted
  On 7/31/2016 at 1:53 PM, DARKHAWX said:

Well I get that, but I don't know how not to use the deprecated method... I can't seem to find a tutorial or example that works...

 

Here's how:

RenderingRegistry.registerEntityRenderingHandler(EntityGreenGoblinGlider.class, new IRenderFactory<EntityGreenGoblinGlider>()
{
    @Override
    public Render<? super EntityGreenGoblinGlider> createRenderFor(RenderManager manager)
    {
        return new RenderGreenGoblinGlider(manager);
    }
});

width=620 height=260http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img]

Till next time. Thank you for delivering funny scenes to Star Trek as Chekov :) . Will always remember you

Posted
  On 7/31/2016 at 2:00 PM, diesieben07 said:

  Quote
Here's how:
Just vomiting copy-pasta code into your post is not encouraged as a form of answering in this forum, thank you.

 

Oh sorry! I will keep that in mind in future posts :)

width=620 height=260http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img]

Till next time. Thank you for delivering funny scenes to Star Trek as Chekov :) . Will always remember you

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.