CodeChicken Lib 1.8.+

CodeChicken Lib 1.8.+

128M Downloads

Register Help with IItemRenderer

Opened this issue ยท 5 comments

commented

I have problem with IItemRenderer,
when i register armor (item) / block or tileentity
i have problem with texture:
error

the function to register:
code1

the function use by IItemRenderer:
code2

can you help me ?
thanks in advance.

commented

There really isn't much information here.. Why is your method named renderOverlay, it doesn't render anything, id call it registerOverlayRenderer, furthermore why is it red underlined, eclipse is telling you something.
What happens to your item? Does its model not show? Does it show in the corner? Does it break the characters skin like that? I literally have no information. If you can provide a little more insight to what the actual problem is in your screenshot that'd be nice.

commented
  1. renderOverlay render IOverlayRender (Directly inspired of Overlay of Avaritia (the halo))
  2. the red line is fixed
  3. item not a problem but armor (texture when equiped (screenshot 1)) does not renderer and block too when overlay boolean is true and IOverlayRender is Assigned in ItemArmorMaster
  4. no
  5. similar to 3
  6. yea is see and i uploaded all need in repo: Help Git
commented

I don't think this has anything to do with CCL, add some println calls in your IItemRenderer.renderItem method to see if its being called, other than that, i cant really help you much sorry, there is heaps of example code for IItemRenderer registration that you can use as reference.

commented

EDIT: TransformType as Only for GUI: OverlayRender
This is the OverlayRender, basically is Avaritia with custom add,
need to be type.HEAD ?

commented

This wasn't a CCL issue.