Posted August 24, 201213 yr Hello Everyone! in renderblocks: public class RenderBlocks { // ... public boolean renderBlockByRenderType(Block par1Block, int par2, int par3, int par4) { int var5 = par1Block.getRenderType(); par1Block.setBlockBoundsBasedOnState(this.blockAccess, par2, par3, par4); switch (var5) { // ... default: return FMLRenderAccessLibrary.renderWorldBlock(this, blockAccess, par2, par3, par4, par1Block, var5); } // ... public boolean renderPistonBase(Block par1Block, int par2, int par3, int par4, boolean par5) { int var6 = this.blockAccess.getBlockMetadata(par2, par3, par4); boolean var7 = par5 || (var6 & != 0; int var8 = BlockPistonBase.getOrientation(var6); //... EOF I want to render block, that has orientation, like a piston, exactly like a piston, but meta is block type and behavior, so i can't use meta, but i cannot use default piston renderer because of heavy binding to meta value. How can i easily render it? it is a block family, that must be rotated by wrench/screwdriver, i want something like rp does with it's blocks. WBR, Vany.
August 24, 201213 yr Use a custom block renderer. So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
August 24, 201213 yr Great idea, but where is documentation how to do it? In other mods. So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
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.