Jump to content

Having difficulty getting tile entity to render properly.


UntouchedWagons

Recommended Posts

I'm working on porting a mod from 1.6.4 to 1.7.10 and I finally got it to compile (after rewriting all the packet stuff and whatnot) but the blocks aren't rendering properly. I really don't understand how OpenGL and all the rendering stuff works so it could very well be something I broke porting the mod.

 

Picture: http://i.imgur.com/R9uGk30.png

 

All the code for the mod can be found on my github account

 

Tile Entity class: code

 

Tile Entity Render: code

I like trains.

Link to comment
Share on other sites

I know the TileEntity renderer works. The way the original author wrote it, when you put an item in to sell, the TileEntity renderer will render the item inside the block (the vending machine looks not unlike a glass cookie jar) as if you simply dropped the item on the ground. When I put an item in, the item does show up.

 

I put an "FMLLog.info" bit at the beginning of each method of the ISBRH class that does render stuff (drawBlock, renderInventoryBlock, and renderWorldBlock) and I saw "renderInventoryBlock" and "drawBlock" spammed to the console. So that tells me it's doing stuff, just not the right stuff.

I like trains.

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.