Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public boolean renderWorldBlock( IBlockAccess iblockaccess, int x, int y, int z, Block block, int modelId, RenderBlocks renderblocks )
  2.     {
  3.         int meta = iblockaccess.getBlockMetadata(x, y, z);
  4.        
  5.         if (meta == ForgeDirection.EAST.getOpposite( ).ordinal( )) { // EAst is 3 in mc
  6.             block.setBlockBounds( 0.1875F, 0.0F, 0.0F, 0.8125F, 1.0F, 1.0F );
  7.             Util.setRenderBoundsFromBlock( renderblocks, block );
  8.             renderblocks.renderStandardBlock(block, x, y, z);
  9.            
  10.             //setBlockBounds( 0.0F, 0.0F, 0.1875F, 1F, 1.0F, 0.8125F );
  11.         }
  12.         else if (meta == ForgeDirection.WEST.getOpposite( ).ordinal( )) {
  13.             //block.setBlockBounds(0.0F, 0.0F, 0.0F, 1, 1, 1);
  14.             block.setBlockBounds( 0.1875F, 0.0F, 0.0F, 0.8125F, 1.0F, 1.0F );
  15.             Util.setRenderBoundsFromBlock( renderblocks, block );
  16.             renderblocks.renderStandardBlock(block, x, y, z);
  17.         }
  18.         else if (meta == ForgeDirection.NORTH.getOpposite( ).ordinal( )) {
  19.             block.setBlockBounds(0.0F, 0.0F, 0.0F, 1, 1, 1);
  20.             Util.setRenderBoundsFromBlock( renderblocks, block );
  21.             renderblocks.renderStandardBlock(block, x, y, z);
  22.         }
  23.         else if (meta == ForgeDirection.SOUTH.getOpposite( ).ordinal( )) {
  24.             block.setBlockBounds(0.0F, 0.0F, 0.0F, 1, 1, 1);
  25.             Util.setRenderBoundsFromBlock( renderblocks, block );
  26.             renderblocks.renderStandardBlock(block, x, y, z);
  27.         }
  28.    
  29.         return true;
  30.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement