Jump to content

How to disable rendering for some sides from specified blocks


rafradek

Recommended Posts

I want to implement a List filled with arrays, containing information about coordinates of the block and which side should not be rendered. Unfortunately there are no hooks for rendering blocks, so i am probably forced to modify RenderBlock class directly, but that will cause installation and compatibility problems. Is there another way to do it?

Link to comment
Share on other sites

Hi

 

There are lots of ways to render blocks without modifying RenderBlock. 

Block.getBlockTexture, ISimpleBlockRenderingHandler, TileEntitySpecialRenderer.

This link might help.  See the Block Rendering sections in particular.

http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html

 

A quick google on those keywords should also bring up plenty of tutorials.

 

Why do you want to store the "dont render this side" information in separate arrays, rather than in metadata or in TileEntity?

 

-TGG

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.