2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("InitCrafting.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-01-30 20:16:32 +01:00
|
|
|
|
2016-05-20 17:55:33 +02:00
|
|
|
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
|
2018-05-10 11:38:58 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
2017-06-16 22:14:50 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.config.values.ConfigIntListValues;
|
2016-09-01 22:11:51 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.fluids.InitFluids;
|
2016-05-20 17:55:33 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.metalists.TheMiscItems;
|
2021-02-27 21:24:26 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.misc.apiimpl.farmer.*;
|
2016-05-20 17:55:33 +02:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2018-06-24 02:44:47 +02:00
|
|
|
import net.minecraft.item.crafting.Ingredient;
|
2017-06-17 00:48:49 +02:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2015-01-30 20:16:32 +01:00
|
|
|
|
2021-02-27 21:24:26 +01:00
|
|
|
// TODO: [port] MOVE TO DATA_GENERATOR
|
|
|
|
@Deprecated
|
2019-05-02 09:10:29 +02:00
|
|
|
public final class InitCrafting {
|
2015-01-30 20:16:32 +01:00
|
|
|
|
2019-05-02 09:10:29 +02:00
|
|
|
public static void init() {
|
2018-05-10 11:38:58 +02:00
|
|
|
ActuallyAdditions.LOGGER.info("Initializing Crafting Recipes...");
|
2015-01-30 20:16:32 +01:00
|
|
|
|
2021-02-27 21:24:26 +01:00
|
|
|
// ItemCrafting.init();
|
|
|
|
// BlockCrafting.init();
|
|
|
|
// MiscCrafting.init();
|
|
|
|
// FoodCrafting.init();
|
|
|
|
// ToolCrafting.init();
|
2016-05-20 17:55:33 +02:00
|
|
|
|
2018-06-24 02:44:47 +02:00
|
|
|
ActuallyAdditionsAPI.addCompostRecipe(Ingredient.fromStacks(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.MASHED_FOOD.ordinal())), Blocks.LEAVES.getDefaultState(), new ItemStack(InitItems.itemFertilizer), Blocks.DIRT.getDefaultState());
|
2018-06-26 22:25:51 +02:00
|
|
|
ActuallyAdditionsAPI.addCompostRecipe(Ingredient.fromItems(InitItems.itemCanolaSeed), Blocks.DIRT.getDefaultState(), new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BIOMASS.ordinal()), Blocks.SOUL_SAND.getDefaultState());
|
2016-07-17 13:27:20 +02:00
|
|
|
|
2017-06-16 22:14:50 +02:00
|
|
|
int[] power = ConfigIntListValues.OIL_POWER.getValue();
|
|
|
|
int[] time = ConfigIntListValues.OIL_TIME.getValue();
|
|
|
|
ActuallyAdditionsAPI.addOilGenRecipe(InitFluids.fluidCanolaOil.getName(), power[0], time[0]);
|
2017-07-12 20:19:48 +02:00
|
|
|
ActuallyAdditionsAPI.addOilGenRecipe(InitFluids.fluidRefinedCanolaOil.getName(), power[1], time[1]);
|
2017-06-16 22:14:50 +02:00
|
|
|
ActuallyAdditionsAPI.addOilGenRecipe(InitFluids.fluidCrystalOil.getName(), power[2], time[2]);
|
|
|
|
ActuallyAdditionsAPI.addOilGenRecipe(InitFluids.fluidEmpoweredOil.getName(), power[3], time[3]);
|
2016-09-01 22:11:51 +02:00
|
|
|
|
2016-12-04 15:03:01 +01:00
|
|
|
ActuallyAdditionsAPI.addFarmerBehavior(new DefaultFarmerBehavior());
|
2016-12-04 15:36:14 +01:00
|
|
|
ActuallyAdditionsAPI.addFarmerBehavior(new CactusFarmerBehavior());
|
2016-12-04 16:15:32 +01:00
|
|
|
ActuallyAdditionsAPI.addFarmerBehavior(new NetherWartFarmerBehavior());
|
2017-01-31 18:49:42 +01:00
|
|
|
ActuallyAdditionsAPI.addFarmerBehavior(new ReedFarmerBehavior());
|
2017-02-22 13:28:53 +01:00
|
|
|
ActuallyAdditionsAPI.addFarmerBehavior(new MelonPumpkinFarmerBehavior());
|
2021-02-27 21:24:26 +01:00
|
|
|
// ActuallyAdditionsAPI.addFarmerBehavior(new EnderlillyFarmerBehavior());
|
|
|
|
// ActuallyAdditionsAPI.addFarmerBehavior(new RedOrchidFarmerBehavior());
|
2016-12-04 15:03:01 +01:00
|
|
|
|
2018-05-10 11:38:58 +02:00
|
|
|
new RecipePotionRingCharging(new ResourceLocation(ActuallyAdditions.MODID, "potion_ring_charging"));
|
|
|
|
new RecipeBioMash(new ResourceLocation(ActuallyAdditions.MODID, "bio_mash"));
|
2015-01-30 20:16:32 +01:00
|
|
|
}
|
|
|
|
}
|