2014-05-27 00:25:39 +02:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
|
|
|
|
* http://www.mod-buildcraft.com
|
|
|
|
*
|
2014-12-09 21:09:14 +01:00
|
|
|
* The BuildCraft API is distributed under the terms of the MIT License.
|
|
|
|
* Please check the contents of the license, which should be located
|
|
|
|
* as "LICENSE.API" in the BuildCraft source code distribution.
|
2014-05-27 00:25:39 +02:00
|
|
|
*/
|
|
|
|
package buildcraft.api.recipes;
|
|
|
|
|
2014-08-13 22:11:44 +02:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2014-06-06 09:00:11 +02:00
|
|
|
public interface IFlexibleRecipe<T> {
|
2014-05-27 00:25:39 +02:00
|
|
|
|
2014-06-06 09:00:11 +02:00
|
|
|
boolean canBeCrafted(IFlexibleCrafter crafter);
|
2014-05-27 00:25:39 +02:00
|
|
|
|
2014-06-06 09:00:11 +02:00
|
|
|
CraftingResult<T> craft(IFlexibleCrafter crafter, boolean preview);
|
2014-05-27 00:25:39 +02:00
|
|
|
|
2014-08-13 22:11:44 +02:00
|
|
|
CraftingResult<T> canCraft(ItemStack expectedOutput);
|
|
|
|
|
2014-06-02 16:29:13 +02:00
|
|
|
String getId();
|
|
|
|
}
|