2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.crafting;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
2015-04-24 19:22:03 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigCrafting;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-04-04 05:20:19 +02:00
|
|
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
|
|
|
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
public class FoodCrafting{
|
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
|
2015-07-02 10:45:15 +02:00
|
|
|
ItemStack knifeStack = new ItemStack(InitItems.itemKnife);
|
2015-03-29 15:29:05 +02:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
//Rice Bread
|
|
|
|
if(ConfigCrafting.RICE_BREAD.isEnabled())
|
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RICE_DOUGH.ordinal()),
|
|
|
|
new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE_BREAD.ordinal()), 1F);
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
//Baguette
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.BAGUETTE.isEnabled())
|
2015-03-07 02:23:31 +01:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemMisc, 1,
|
|
|
|
TheMiscItems.DOUGH.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.BAGUETTE.ordinal()), 1F);
|
|
|
|
|
|
|
|
//Pizza
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.PIZZA.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.PIZZA.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"HKH", "MCF", " D ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
'M', new ItemStack(Blocks.brown_mushroom),
|
2015-04-04 05:20:19 +02:00
|
|
|
'C', "cropCarrot",
|
2015-03-07 02:23:31 +01:00
|
|
|
'F', new ItemStack(Items.cooked_fished, 1, Util.WILDCARD),
|
2015-03-29 15:29:05 +02:00
|
|
|
'K', knifeStack,
|
2015-07-02 10:45:15 +02:00
|
|
|
'H', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal())));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Hamburger
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.HAMBURGER.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.HAMBURGER.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"KT ", "CB ", " T ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'T', new ItemStack(InitItems.itemFoods, 1, TheFoods.TOAST.ordinal()),
|
|
|
|
'C', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
2015-03-29 15:29:05 +02:00
|
|
|
'K', knifeStack,
|
2015-04-04 05:20:19 +02:00
|
|
|
'B', new ItemStack(Items.cooked_beef)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Big Cookie
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.BIG_COOKIE.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.BIG_COOKIE.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"DCD", "CDC", "DCD",
|
2015-07-02 10:45:15 +02:00
|
|
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
2015-04-04 05:20:19 +02:00
|
|
|
'C', new ItemStack(Items.dye, 1, 3)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Sub Sandwich
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.SUB.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.SUBMARINE_SANDWICH.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"KCP", "FB ", "PCP",
|
|
|
|
'P', new ItemStack(Items.paper),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
'F', new ItemStack(Items.cooked_fished, 1, Util.WILDCARD),
|
2015-07-02 10:45:15 +02:00
|
|
|
'B', new ItemStack(InitItems.itemFoods, 1, TheFoods.BAGUETTE.ordinal()),
|
2015-04-04 05:20:19 +02:00
|
|
|
'K', knifeStack));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//French Fry
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.FRENCH_FRY.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 2, TheFoods.FRENCH_FRY.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
new ItemStack(Items.baked_potato),
|
2015-04-04 05:20:19 +02:00
|
|
|
knifeStack));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//French Fries
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.FRENCH_FRIES.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.FRENCH_FRIES.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"FFF", " P ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'P', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
|
|
|
'F', new ItemStack(InitItems.itemFoods, 1, TheFoods.FRENCH_FRY.ordinal())));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Fish N Chips
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.FISH_N_CHIPS.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.FISH_N_CHIPS.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"FIF", " P ",
|
|
|
|
'I', new ItemStack(Items.cooked_fished, 1, Util.WILDCARD),
|
2015-07-02 10:45:15 +02:00
|
|
|
'P', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
|
|
|
'F', new ItemStack(InitItems.itemFoods, 1, TheFoods.FRENCH_FRY.ordinal())));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Cheese
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.CHEESE.isEnabled())
|
2015-03-07 02:23:31 +01:00
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
|
|
|
new ItemStack(Items.milk_bucket));
|
|
|
|
|
|
|
|
//Pumpkin Stew
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.PUMPKIN_STEW.isEnabled())
|
2015-03-07 02:23:31 +01:00
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.PUMPKIN_STEW.ordinal()),
|
|
|
|
"P", "B",
|
|
|
|
'P', new ItemStack(Blocks.pumpkin),
|
|
|
|
'B', new ItemStack(Items.bowl));
|
|
|
|
|
|
|
|
//Carrot Juice
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.CARROT_JUICE.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CARROT_JUICE.ordinal()),
|
|
|
|
new ItemStack(Items.glass_bottle), "cropCarrot", knifeStack));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Spaghetti
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.SPAGHETTI.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.SPAGHETTI.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"NNN", " B ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'N', new ItemStack(InitItems.itemFoods, 1, TheFoods.NOODLE.ordinal()),
|
2015-04-04 05:20:19 +02:00
|
|
|
'B', new ItemStack(Items.bowl)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Noodle
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.NOODLE.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.NOODLE.ordinal()),
|
|
|
|
"cropWheat", knifeStack));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Chocolate
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.CHOCOLATE.isEnabled())
|
2015-05-29 18:17:28 +02:00
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemFoods, 3, TheFoods.CHOCOLATE.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"C C", "CMC", "C C",
|
|
|
|
'C', new ItemStack(Items.dye, 1, 3),
|
|
|
|
'M', new ItemStack(Items.milk_bucket));
|
|
|
|
|
|
|
|
//Chocolate Cake
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.CHOCOLATE_CAKE.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHOCOLATE_CAKE.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
"MMM", "CCC", "EDS",
|
|
|
|
'M', new ItemStack(Items.milk_bucket),
|
|
|
|
'E', new ItemStack(Items.egg),
|
2015-07-02 10:45:15 +02:00
|
|
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
2015-03-07 02:23:31 +01:00
|
|
|
'S', new ItemStack(Items.sugar),
|
2015-04-04 05:20:19 +02:00
|
|
|
'C', new ItemStack(Items.dye, 1, 3)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Toast
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.TOAST.isEnabled())
|
2015-03-07 02:23:31 +01:00
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 2, TheFoods.TOAST.ordinal()),
|
|
|
|
new ItemStack(Items.bread));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|