private boolean renderWaterOnBasicBlock( RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block) { if (getAdjacentCount(world, x, y, z, Blocks.water) >= 2) { renderer.renderBlockLiquid(Blocks.water, x, y, z); return true; } else if (getAdjacentCount(world, x, y, z, Blocks.flowing_water, Blocks.water) >= 1) { renderer.renderBlockLiquid(Blocks.flowing_water, x, y, z); } return true; }
public boolean renderSeaweed( RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block) { renderBlockCrops(block, x, y, z, world, renderer); // this.renderBlockFluids(renderer, blockAccess, Block.waterStill, par2, par3, par4); // renderer.renderBlockCropsImpl(block, world.getBlockMetadata(x, y, z), (double)x, // (double)((float)y - 0.0625F), (double)z); renderer.renderBlockLiquid(Blocks.flowing_water, x, y, z); return true; }
private boolean renderBrazier( RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block) { // Do position checks // brazierRenderer.renderAtPos(x, y, z); if (((BlockBrazier) block).inWater) { renderBlockCrops(block, x, y, z, world, renderer); renderer.renderBlockLiquid(Blocks.flowing_water, x, y, z); } else { renderBlockCrops(block, x, y, z, world, renderer); } return true; }
private boolean renderSponge( RenderBlocks var1, IBlockAccess var2, int var3, int var4, int var5, Block var6) { int var7 = var2.getBlockMetadata(var3, var4, var5); if (var7 == 0) { var6.setBlockBounds(0.375F, 0.0F, 0.375F, 0.625F, 0.25F, 0.625F); var1.renderStandardBlock(var6, var3, var4, var5); } else if (var7 == 1) { var6.setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F); var1.renderStandardBlock(var6, var3, var4, var5); } else if (var7 == 2) { var6.setBlockBounds(0.125F, 0.0F, 0.125F, 0.875F, 0.75F, 0.875F); var1.renderStandardBlock(var6, var3, var4, var5); } var1.renderBlockLiquid(Blocks.water, var3, var4, var5); return true; }
private boolean renderCoral( RenderBlocks var1, IBlockAccess var2, int var3, int var4, int var5, Block var6) { if (var2.getBlock(var3, var4, var5) instanceof BlockCoral) { if (var2.getBlockMetadata(var3, var4, var5) % 8 == 6) { var6.setBlockBounds(0.375F, 0.0F, 0.375F, 0.625F, 0.25F, 0.625F); var1.renderStandardBlock(var6, var3, var4, var5); } else if (var2.getBlockMetadata(var3, var4, var5) % 8 == 2) { var6.setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F); var1.renderStandardBlock(var6, var3, var4, var5); } else { var6.setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.75F, 0.75F); var1.renderCrossedSquares(var6, var3, var4, var5); } } else { var6.setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.75F, 0.75F); var1.renderCrossedSquares(var6, var3, var4, var5); } var1.renderBlockLiquid(Blocks.water, var3, var4, var5); return true; }