Applied-Energistics-2-tiler.../recipes/loader/JarLoader.java
AlgorithmX2 08e6a656b8 Added Basic Quartz and Tool Recipes.
Added Custom Recipes.
2014-02-10 23:51:25 -06:00

23 lines
459 B
Java

package appeng.recipes.loader;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import appeng.api.recipes.IRecipeLoader;
public class JarLoader implements IRecipeLoader
{
private String rootPath;
public JarLoader(String s) {
rootPath = s;
}
@Override
public BufferedReader getFile(String s) throws Exception
{
return new BufferedReader( new InputStreamReader( getClass().getResourceAsStream( rootPath + s ), "UTF-8" ) );
}
}