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