Jump to content

Recommended Posts

Posted

The title is self-explanatory

@Override
public void RegisterRenderers()
{
	RenderingRegistry.registerEntityRenderingHandler(EntityStarBlazing.class, new RenderSnowball((Item)DreemurrWeps.itemStarBlazing));
}

[move]Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here[/move]

Posted

[move]Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here[/move]

Posted

Without code in front of me, an NPE during rendering suggests that you registered your item renderer BEFORE you instantiated your Item.

 

Check RenderSnowball line 43 - if it has anything to do with an Item or ItemStack, then you just need to make sure to instantiate all of your Items and Blocks at the beginning of pre-init, and register your renderers at the end of pre-init (or during init, since you are still pre-1.8).

Posted

Oh, that's it, thanks

 

I'll be sure to post all of the code involved next time instead of the snippet that's causing the problem

[move]Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here Insert generic signature here[/move]

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.