Posted July 9, 201411 yr 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?
July 9, 201411 yr Block.class public boolean shouldSideBeRendered(IBlockAccess iblockaccess, x, y, z, side) { return true; }
July 9, 201411 yr Author Block.class public boolean shouldSideBeRendered(IBlockAccess iblockaccess, x, y, z, side) { return true; } LOL this is a good way to make serious lag.
July 9, 201411 yr 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
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.