Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean renderWorldBlock( IBlockAccess iblockaccess, int x, int y, int z, Block block, int modelId, RenderBlocks renderblocks )
- {
- int meta = iblockaccess.getBlockMetadata(x, y, z);
- if (meta == ForgeDirection.EAST.getOpposite( ).ordinal( )) { // EAst is 3 in mc
- block.setBlockBounds( 0.1875F, 0.0F, 0.0F, 0.8125F, 1.0F, 1.0F );
- Util.setRenderBoundsFromBlock( renderblocks, block );
- renderblocks.renderStandardBlock(block, x, y, z);
- //setBlockBounds( 0.0F, 0.0F, 0.1875F, 1F, 1.0F, 0.8125F );
- }
- else if (meta == ForgeDirection.WEST.getOpposite( ).ordinal( )) {
- //block.setBlockBounds(0.0F, 0.0F, 0.0F, 1, 1, 1);
- block.setBlockBounds( 0.1875F, 0.0F, 0.0F, 0.8125F, 1.0F, 1.0F );
- Util.setRenderBoundsFromBlock( renderblocks, block );
- renderblocks.renderStandardBlock(block, x, y, z);
- }
- else if (meta == ForgeDirection.NORTH.getOpposite( ).ordinal( )) {
- block.setBlockBounds(0.0F, 0.0F, 0.0F, 1, 1, 1);
- Util.setRenderBoundsFromBlock( renderblocks, block );
- renderblocks.renderStandardBlock(block, x, y, z);
- }
- else if (meta == ForgeDirection.SOUTH.getOpposite( ).ordinal( )) {
- block.setBlockBounds(0.0F, 0.0F, 0.0F, 1, 1, 1);
- Util.setRenderBoundsFromBlock( renderblocks, block );
- renderblocks.renderStandardBlock(block, x, y, z);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement