TechReborn/src/main/java/techreborn/util/RecipeUtils.java

20 lines
514 B
Java
Raw Normal View History

2015-09-23 18:27:41 +02:00
package techreborn.util;
import cpw.mods.fml.common.Loader;
import ic2.api.item.IC2Items;
import net.minecraft.item.ItemStack;
import techreborn.items.ItemCells;
public class RecipeUtils {
public static ItemStack getEmptyCell(int stackSize){
if(Loader.isModLoaded("IC2")){
ItemStack cell = IC2Items.getItem("cell").copy();
cell.stackSize = stackSize;
return cell;
} else {
return ItemCells.getCellByName("empty", stackSize);
}
}
}