package net.minecraft.block; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.material.Material; import net.minecraft.world.IBlockAccess; public class BlockLeavesBase extends Block { protected boolean field_150121_P; private static final String __OBFID = "CL_00000326"; protected BlockLeavesBase(Material p_i45433_1_, boolean p_i45433_2_) { super(p_i45433_1_); this.field_150121_P = p_i45433_2_; } public boolean isOpaqueCube() { return false; } /** * Returns true if the given side of this block type should be rendered, if the adjacent block is at the given * coordinates. Args: blockAccess, x, y, z, side */ @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess worldIn, int x, int y, int z, int side) { Block block = worldIn.getBlock(x, y, z); return !this.field_150121_P && block == this ? false : super.shouldSideBeRendered(worldIn, x, y, z, side); } }