content: package zmaster587.advancedRocketry.block;
  
  import net.minecraft.block.Block;
  import net.minecraft.block.material.Material;
  import net.minecraft.block.state.IBlockState;
  import net.minecraft.entity.Entity;
  import net.minecraft.util.BlockRenderLayer;
  import net.minecraft.util.EnumFacing;
  import net.minecraft.util.math.BlockPos;
  import net.minecraft.world.IBlockAccess;
  import net.minecraftforge.fml.relauncher.Side;
  import net.minecraftforge.fml.relauncher.SideOnly;
  
  public class BlockForceField extends Block {
  
  	public BlockForceField(Material materialIn) {
  		super(materialIn);
  	}
  	
      /**
       * Used to determine ambient occlusion and culling when rebuilding chunks for render
       */
      public boolean isOpaqueCube(IBlockState state)
      {
          return false;
      }
      
      @Override
      public boolean canEntityDestroy(IBlockState state, IBlockAccess world, BlockPos pos, Entity entity) {
      	// Don't let wither or enderdragon destroy it
      	return false;
      }
      
      public boolean isFullCube(IBlockState state)
      {
          return false;
      }
      
      @SideOnly(Side.CLIENT)
      public BlockRenderLayer getBlockLayer()
      {
          return BlockRenderLayer.TRANSLUCENT;
      }
      
      @SideOnly(Side.CLIENT)
      public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
      {
          IBlockState iblockstate = blockAccess.getBlockState(pos.offset(side));
          Block block = iblockstate.getBlock();
  
          return block != this && super.shouldSideBeRendered(blockState, blockAccess, pos, side);
      }
  
  }
  