4862
This commit is contained in:
parent
f0a70fa478
commit
011ebaba1d
46 changed files with 258 additions and 242 deletions
|
@ -1,19 +1,18 @@
|
|||
package techreborn.utils;
|
||||
|
||||
import net.minecraftforge.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 {
|
||||
public static ItemStack getEmptyCell(int stackSize) { //TODO ic2
|
||||
// if (Loader.isModLoaded("IC2")) {
|
||||
// ItemStack cell = IC2Items.getItem("cell").copy();
|
||||
// cell.stackSize = stackSize;
|
||||
// return cell;
|
||||
// } else {
|
||||
return ItemCells.getCellByName("empty", stackSize);
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue