mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-27 15:11:43 +02:00
36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
/*
|
|
Copyright 2014-2017, the Biomes O' Plenty Team
|
|
|
|
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
|
|
|
|
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
|
|
|
|
Original: https://github.com/Glitchfiend/BiomesOPlenty/blob/0f8be0526e01d918cf8f22d4904a3b74981dee6f/src/main/java/biomesoplenty/common/util/inventory/CraftingUtil.java
|
|
(edited to work with multiple mods)
|
|
*/
|
|
package de.ellpeck.actuallyadditions.mod.util.crafting;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.item.crafting.IRecipe;
|
|
|
|
public final class RecipeHandler {
|
|
|
|
public static IRecipe lastRecipe;
|
|
|
|
public static void addOreDictRecipe(ItemStack output, Object... inputs) {
|
|
addShapedRecipe(output, inputs);
|
|
}
|
|
|
|
public static void addShapelessOreDictRecipe(ItemStack output, Object... inputs) {
|
|
addShapelessRecipe(output, inputs);
|
|
}
|
|
|
|
public static void addShapelessRecipe(ItemStack output, Object... inputs) {
|
|
RecipeHelper.addOldShapeless(output, inputs);
|
|
}
|
|
|
|
public static void addShapedRecipe(ItemStack output, Object... inputs) {
|
|
RecipeHelper.addOldShaped(output, inputs);
|
|
}
|
|
|
|
} |