Moved to RebornCore
This commit is contained in:
parent
50a830a101
commit
8abf6e5282
313 changed files with 3987 additions and 16508 deletions
19
src/main/java/techreborn/utils/RecipeUtils.java
Normal file
19
src/main/java/techreborn/utils/RecipeUtils.java
Normal file
|
@ -0,0 +1,19 @@
|
|||
package techreborn.utils;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue