Jump to content

Recommended Posts

Posted

I keep getting a null pointer exception when trying to render my item and have no idea what's causing it! Anyone know what i'm doing wrong here?

My clientproxy (The place that i'm registering the item renderer is at the very bottom)

 

  Reveal hidden contents

 

 

My model renderer

 

  Reveal hidden contents

 

 

And my custom renderer

 

 

  Reveal hidden contents

 

 

Also here's the null pointer exception it's throwing at me:

 

 

  Reveal hidden contents

 

Any help would be appreciated!

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Posted

Can you paste your main class because I want to see if you registered the renderer before you actually initialized the item which would cause an NPE

Posted

That would seem to be the problem! I thought I only had to do that in the clientproxy but i'll try moving that to my main!

EDIT: Actually that gave me the same error, the only thing changed in the error was the line where it mentioned when I registered it in my clientproxy was changed to the line that I registered it in my main :/ I'll post my main now...

 

Main:

 

  Reveal hidden contents

 

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

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.