2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("MiscCrafting.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.crafting;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.metalists.TheCrystals;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.metalists.TheFoods;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.metalists.TheMiscItems;
|
2016-03-18 18:41:37 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.util.RecipeUtil;
|
2017-06-17 00:48:49 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.util.crafting.RecipeHandler;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-11-15 17:50:31 +01:00
|
|
|
import net.minecraft.item.crafting.IRecipe;
|
2016-01-07 18:20:59 +01:00
|
|
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2016-06-17 23:50:38 +02:00
|
|
|
public final class MiscCrafting{
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2017-02-13 23:17:08 +01:00
|
|
|
public static final IRecipe[] RECIPES_CRYSTAL_SHARDS = new IRecipe[TheCrystals.values().length];
|
|
|
|
public static final IRecipe[] RECIPES_CRYSTAL_SHARDS_BACK = new IRecipe[TheCrystals.values().length];
|
|
|
|
|
2016-06-17 23:50:38 +02:00
|
|
|
public static final IRecipe[] RECIPES_CRYSTALS = new IRecipe[TheCrystals.values().length];
|
|
|
|
public static final IRecipe[] RECIPES_CRYSTAL_BLOCKS = new IRecipe[TheCrystals.values().length];
|
2015-11-15 17:50:31 +01:00
|
|
|
|
2016-08-03 17:59:27 +02:00
|
|
|
public static final IRecipe[] RECIPES_EMPOWERED_CRYSTALS = new IRecipe[TheCrystals.values().length];
|
|
|
|
public static final IRecipe[] RECIPES_EMPOWERED_CRYSTAL_BLOCKS = new IRecipe[TheCrystals.values().length];
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
public static void init(){
|
|
|
|
|
2016-06-27 19:25:46 +02:00
|
|
|
//Bio Coal
|
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BIOMASS.ordinal()),
|
|
|
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BIOCOAL.ordinal()), 1.0F);
|
|
|
|
|
2015-11-15 17:50:31 +01:00
|
|
|
//Crystals
|
|
|
|
for(int i = 0; i < TheCrystals.values().length; i++){
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addOreDictRecipe(new ItemStack(InitBlocks.blockCrystal, 1, i),
|
2015-11-15 17:50:31 +01:00
|
|
|
"XXX", "XXX", "XXX",
|
2017-06-17 00:48:49 +02:00
|
|
|
'X', new ItemStack(InitItems.itemCrystal, 1, i));
|
2016-06-17 23:50:38 +02:00
|
|
|
RECIPES_CRYSTAL_BLOCKS[i] = RecipeUtil.lastIRecipe();
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapelessOreDictRecipe(new ItemStack(InitItems.itemCrystal, 9, i), new ItemStack(InitBlocks.blockCrystal, 1, i));
|
2016-06-17 23:50:38 +02:00
|
|
|
RECIPES_CRYSTALS[i] = RecipeUtil.lastIRecipe();
|
2016-08-03 17:59:27 +02:00
|
|
|
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addOreDictRecipe(new ItemStack(InitBlocks.blockCrystalEmpowered, 1, i),
|
2016-08-03 17:59:27 +02:00
|
|
|
"XXX", "XXX", "XXX",
|
2017-06-17 00:48:49 +02:00
|
|
|
'X', new ItemStack(InitItems.itemCrystalEmpowered, 1, i));
|
2016-08-03 17:59:27 +02:00
|
|
|
RECIPES_EMPOWERED_CRYSTAL_BLOCKS[i] = RecipeUtil.lastIRecipe();
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapelessOreDictRecipe(new ItemStack(InitItems.itemCrystalEmpowered, 9, i), new ItemStack(InitBlocks.blockCrystalEmpowered, 1, i));
|
2016-08-03 17:59:27 +02:00
|
|
|
RECIPES_EMPOWERED_CRYSTALS[i] = RecipeUtil.lastIRecipe();
|
2017-02-13 23:17:08 +01:00
|
|
|
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addOreDictRecipe(new ItemStack(InitItems.itemCrystal, 1, i),
|
2017-02-13 23:17:08 +01:00
|
|
|
"XXX", "XXX", "XXX",
|
2017-06-17 00:48:49 +02:00
|
|
|
'X', new ItemStack(InitItems.itemCrystalShard, 1, i));
|
2017-02-13 23:17:08 +01:00
|
|
|
RECIPES_CRYSTAL_SHARDS[i] = RecipeUtil.lastIRecipe();
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapelessOreDictRecipe(new ItemStack(InitItems.itemCrystalShard, 9, i), new ItemStack(InitItems.itemCrystal, 1, i));
|
2017-02-13 23:17:08 +01:00
|
|
|
RECIPES_CRYSTAL_SHARDS_BACK[i] = RecipeUtil.lastIRecipe();
|
2015-11-15 17:50:31 +01:00
|
|
|
}
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
//Dough
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapelessOreDictRecipe(new ItemStack(InitItems.itemMisc, 2, TheMiscItems.DOUGH.ordinal()),
|
|
|
|
"cropWheat", "cropWheat");
|
2016-11-30 17:05:49 +01:00
|
|
|
ItemCrafting.recipeDough = RecipeUtil.lastIRecipe();
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
//Rice Dough
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapelessOreDictRecipe(new ItemStack(InitItems.itemMisc, 2, TheMiscItems.RICE_DOUGH.ordinal()),
|
|
|
|
new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()));
|
2016-11-30 17:05:49 +01:00
|
|
|
ItemCrafting.recipeRiceDough = RecipeUtil.lastIRecipe();
|
2015-05-20 22:39:43 +02:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
//Paper Cone
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapedRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
2016-11-30 17:05:49 +01:00
|
|
|
"P P", " P ",
|
|
|
|
'P', new ItemStack(Items.PAPER));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Knife Handle
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapelessOreDictRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_HANDLE.ordinal()),
|
2016-11-30 17:05:49 +01:00
|
|
|
"stickWood",
|
2017-06-17 00:48:49 +02:00
|
|
|
new ItemStack(Items.LEATHER));
|
2016-11-30 17:05:49 +01:00
|
|
|
ItemCrafting.recipeKnifeHandle = RecipeUtil.lastIRecipe();
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Knife Blade
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addOreDictRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_BLADE.ordinal()),
|
2016-11-30 17:05:49 +01:00
|
|
|
"K", "K", "F",
|
|
|
|
'K', "ingotIron",
|
2017-06-17 00:48:49 +02:00
|
|
|
'F', new ItemStack(Items.FLINT));
|
2016-11-30 17:05:49 +01:00
|
|
|
ItemCrafting.recipeKnifeBlade = RecipeUtil.lastIRecipe();
|
2016-05-04 17:47:54 +02:00
|
|
|
|
|
|
|
//Ender Star
|
2017-06-17 00:48:49 +02:00
|
|
|
RecipeHandler.addShapelessOreDictRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.ENDER_STAR.ordinal()),
|
2016-11-30 17:05:49 +01:00
|
|
|
new ItemStack(Items.NETHER_STAR),
|
|
|
|
new ItemStack(Items.DRAGON_BREATH),
|
|
|
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
2017-06-17 00:48:49 +02:00
|
|
|
new ItemStack(Items.PRISMARINE_SHARD));
|
2016-11-30 17:05:49 +01:00
|
|
|
ItemCrafting.recipeEnderStar = RecipeUtil.lastIRecipe();
|
2017-10-31 23:01:15 +01:00
|
|
|
|
|
|
|
//Spawner Shard -> ingot
|
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.SPAWNER_SHARD.ordinal()), new ItemStack(Items.IRON_INGOT, 2), 5F);
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|