public interface ICarpenterManager extends ICraftingProvider<ICarpenterRecipe>
The manager is initialized at the beginning of Forestry's BaseMod.load() cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be null even if your mod loads before Forestry.
Accessible via RecipeManagers
Only shaped recipes can be added currently.
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipe(int packagingTime,
net.minecraftforge.fluids.FluidStack liquid,
net.minecraft.item.ItemStack box,
net.minecraft.item.ItemStack product,
java.lang.Object... materials)
Add a shaped recipe to the carpenter.
|
void |
addRecipe(int packagingTime,
net.minecraft.item.ItemStack box,
net.minecraft.item.ItemStack product,
java.lang.Object... materials)
Add a shaped recipe to the carpenter.
|
void |
addRecipe(net.minecraft.item.ItemStack box,
net.minecraft.item.ItemStack product,
java.lang.Object... materials)
Add a shaped recipe to the carpenter.
|
addRecipe, recipes, removeRecipevoid addRecipe(net.minecraft.item.ItemStack box,
net.minecraft.item.ItemStack product,
java.lang.Object... materials)
box - ItemStack of one item representing the required box (carton, crate) for this recipe. May be null.product - Crafting result.materials - Materials needed in the crafting matrix. This gets passed directly to ShapedRecipes. Notation is the same.void addRecipe(int packagingTime,
net.minecraft.item.ItemStack box,
net.minecraft.item.ItemStack product,
java.lang.Object... materials)
packagingTime - Number of work cycles required to craft the recipe once.box - ItemStack of one item representing the required box (carton, crate) for this recipe. May be empty.product - Crafting result.materials - Materials needed in the crafting matrix. This gets passed directly to ShapedRecipes. Notation is the same.void addRecipe(int packagingTime,
@Nullable
net.minecraftforge.fluids.FluidStack liquid,
net.minecraft.item.ItemStack box,
net.minecraft.item.ItemStack product,
java.lang.Object... materials)
packagingTime - Number of work cycles required to craft the recipe once.liquid - Liquid required in carpenter's tank.box - ItemStack of one item representing the required box (carton, crate) for this recipe. May be empty.product - Crafting result.materials - Materials needed in the crafting matrix. This gets passed directly to ShapedRecipes. Notation is the same.