This commit is contained in:
modmuss50 2017-08-30 21:25:13 +01:00
parent efbd5542b4
commit 20e9276bd9
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
4 changed files with 42 additions and 6 deletions

View file

@ -27,6 +27,7 @@ package techreborn.init.recipes;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minecraftforge.oredict.OreDictionary;
import reborncore.common.util.OreUtil;
import reborncore.common.util.StringUtils;
@ -179,6 +180,14 @@ public abstract class RecipeMethods {
return stack;
}
public static Ingredient getCell(String name, int count){
return new IngredientCell(ItemCells.getCellByName(name, count));
}
public static Ingredient getCell(String name){
return getCell(name, 1);
}
public enum Type {
DUST, SMALL_DUST, INGOT, NUGGET, PLATE, GEM, CELL, PART, CABLE, MACHINE_FRAME, MACHINE_CASING, UPGRADE, ORE
}