Hello everyone.
I'm a bit confused as to how one goes about rendering tile entities as an item? (i.e, non 1x1 "blocks" in the players hand, with prominent examples being the fencepost and anvil)
The tileentity I'm attempting to make into an "item" renders fine when I place it down. No issues.
However, in the inventory it shows up as a flat missing texture square. I tried rendering it as a 3d item, which didn't seem to be applicable. Rather it seems that I need to register it using a block handler and assign it a render id, which I then pass to my tile's block. (I may be wrong)
Now, I'm not asking for anyone to write an enormous block of code. I just need a hearty push in the right direction. Maybe a pointer or two to some useful Opengl/render engine methods/techniques? A short example? A example in the vanilla source?
Regardless, I'm grateful for any help. =)
Oh, and a note: I used forge's getNextAvailableRenderId function in my client proxy, and it appears to return a value of -1. Which specifies no render function, I believe? Also, the file size of my tile's texture is 64x32. (I need to adjust it)