Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 23rd, 2012  |  syntax: Java  |  size: 1.32 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         }