Jump to content

access texture inside IItemRenderer


TreetopFlyer

Recommended Posts

I have a class that does not extend anything. It does implement IItemRenderer but that's it.

It has been successfully registered with MinecraftForgeClient.registerItemRenderer and the internal drawing routine renderItem is being called correctly. This drawing routine contains some OpenGL which is being executed without error (the debugger steps through without a problem). However, I need a texture to work with and I'm not sure how to point to one inside of this class.

 

Consider this a "legal" question and not a practical one. Do not reply saying that that I should really be using blocks or something like that. I just want to know how you are supposed to bind a texture in a class that does not have the luxury of something like Render.func_110777_b().

Link to comment
Share on other sites

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.