Search in sources :

Example 6 with RecipeMaker

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());
    }
}
Also used : EnumGem(net.silentchaos512.gems.lib.EnumGem) NBTTagCompound(net.minecraft.nbt.NBTTagCompound) ItemStack(net.minecraft.item.ItemStack)

Example 7 with RecipeMaker

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");
    }
}
Also used : EnumGem(net.silentchaos512.gems.lib.EnumGem) ItemStack(net.minecraft.item.ItemStack)

Example 8 with RecipeMaker

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);
    }
}
Also used : EnumGem(net.silentchaos512.gems.lib.EnumGem) ItemStack(net.minecraft.item.ItemStack)

Example 9 with RecipeMaker

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());
        }
    }
}
Also used : EnumGem(net.silentchaos512.gems.lib.EnumGem) ItemStack(net.minecraft.item.ItemStack)

Example 10 with RecipeMaker

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());
        }
    }
}
Also used : EnumGem(net.silentchaos512.gems.lib.EnumGem) ItemStack(net.minecraft.item.ItemStack)

Aggregations

ItemStack (net.minecraft.item.ItemStack)11 EnumGem (net.silentchaos512.gems.lib.EnumGem)10 RecipeMaker (net.silentchaos512.lib.registry.RecipeMaker)3 IRecipe (net.minecraft.item.crafting.IRecipe)1 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 PageDebugTool (net.silentchaos512.gems.guide.page.PageDebugTool)1 PageOreSpawn (net.silentchaos512.gems.guide.page.PageOreSpawn)1 PageSoulSkill (net.silentchaos512.gems.guide.page.PageSoulSkill)1 SoulSkill (net.silentchaos512.gems.lib.soul.SoulSkill)1 RecipeApplyEnchantmentToken (net.silentchaos512.gems.recipe.RecipeApplyEnchantmentToken)1 RecipeApplyToolSoul (net.silentchaos512.gems.recipe.RecipeApplyToolSoul)1 RecipeChaosGemUpgrade (net.silentchaos512.gems.recipe.RecipeChaosGemUpgrade)1 RecipeDecorateArmor (net.silentchaos512.gems.recipe.RecipeDecorateArmor)1 RecipeDecorateTool (net.silentchaos512.gems.recipe.RecipeDecorateTool)1 RecipeHoldingGemSetBlock (net.silentchaos512.gems.recipe.RecipeHoldingGemSetBlock)1 RecipeMixedMaterialItem (net.silentchaos512.gems.recipe.RecipeMixedMaterialItem)1 RecipeNamePlate (net.silentchaos512.gems.recipe.RecipeNamePlate)1 RecipeToolSoul (net.silentchaos512.gems.recipe.RecipeToolSoul)1 IGuidePage (net.silentchaos512.lib.guidebook.IGuidePage)1