View difference between Paste ID: Lxr3KsP1 and qA8f6Q6m
SHOW: | | - or go back to the newest paste.
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( )) {
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
	}