use of net.silentchaos512.lib.registry.RecipeMaker in project SilentGems by SilentChaos512.
the class ItemHoldingGem method addRecipes.
@Override
public void addRecipes(RecipeMaker recipes) {
for (EnumGem gem : EnumGem.values()) {
ItemStack stack = new ItemStack(this);
stack.setTagCompound(new NBTTagCompound());
stack.getTagCompound().setShort(NBT_GEM_ID, (short) gem.ordinal());
recipes.addShapedOre("holding_gem_" + gem.name(), stack, "gcg", "s s", "gcg", 'g', "ingotGold", 'c', ModItems.craftingMaterial.chaosEssenceEnriched, 's', gem.getItemOreName());
}
}
use of net.silentchaos512.lib.registry.RecipeMaker in project SilentGems by SilentChaos512.
the class BlockGemGlass method addRecipes.
@Override
public void addRecipes(RecipeMaker recipes) {
for (int i = 0; i < 16; ++i) {
EnumGem gem = getGem(i);
recipes.addSurroundOre(blockName + i, new ItemStack(this, 8, i), gem.getShardOreName(), "blockGlass");
}
}
use of net.silentchaos512.lib.registry.RecipeMaker in project SilentGems by SilentChaos512.
the class BlockGemOre method addRecipes.
@Override
public void addRecipes(RecipeMaker recipes) {
ItemStack ore, item;
for (int i = 0; i < 16; ++i) {
EnumGem gem = getGem(i);
ore = gem.getOre();
item = gem.getItem();
// Smelting
recipes.addSmelting(ore, item, 0.5f);
// SAG Mill
ModRecipeHelper.addSagMillRecipe(gem.getGemName() + "Ore", ore, item, gemSet == EnumGem.Set.LIGHT ? "endstone" : gemSet == EnumGem.Set.DARK ? "netherrack" : "cobblestone", 3000);
}
}
use of net.silentchaos512.lib.registry.RecipeMaker in project SilentGems by SilentChaos512.
the class BlockTeleporter method addRecipes.
@Override
public void addRecipes(RecipeMaker recipes) {
if (GemsConfig.RECIPE_TELEPORTER_DISABLE) {
return;
}
ItemStack[] anyTeleporter = new ItemStack[] { new ItemStack(ModBlocks.teleporter, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ModBlocks.teleporterDark, 1, OreDictionary.WILDCARD_VALUE) };
int lastIndex = -1;
for (int i = 0; i < subBlockCount; ++i) {
EnumGem gem = getGem(i);
recipes.addShapedOre(blockName + i, new ItemStack(this, 2, i), "cec", " g ", "cec", 'c', ModItems.craftingMaterial.chaosEssenceEnriched, 'e', ModItems.craftingMaterial.enderEssence, 'g', gem.getBlockOreName());
for (ItemStack stack : anyTeleporter) {
recipes.addShapelessOre(blockName + "_" + (++lastIndex) + "_recolor", new ItemStack(this, 1, i), stack, gem.getItemOreName());
}
}
}
use of net.silentchaos512.lib.registry.RecipeMaker in project SilentGems by SilentChaos512.
the class BlockTeleporterRedstone method addRecipes.
@Override
public void addRecipes(RecipeMaker recipes) {
if (GemsConfig.RECIPE_TELEPORTER_REDSTONE_DISABLE) {
return;
}
ItemStack[] anyTeleporter = new ItemStack[] { new ItemStack(ModBlocks.teleporterRedstone, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ModBlocks.teleporterRedstoneDark, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ModBlocks.teleporterRedstoneLight, 1, OreDictionary.WILDCARD_VALUE) };
int lastIndex = -1;
for (int i = 0; i < subBlockCount; ++i) {
EnumGem gem = getGem(i);
ItemStack teleporterRedstone = new ItemStack(this, 1, i);
ItemStack teleporterBasic = getBasicTeleporter(i);
recipes.addShapelessOre(blockName + i, teleporterRedstone, teleporterBasic, "dustRedstone");
for (ItemStack stack : anyTeleporter) {
recipes.addShapelessOre(blockName + "_" + (++lastIndex) + "_recolor", new ItemStack(this, 1, i), stack, gem.getItemOreName());
}
}
}
Aggregations