Package forestry.api.recipes
Interface ICarpenterRecipe
- All Superinterfaces:
IForestryRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.Container>
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.crafting.IngredientgetBox()net.minecraft.world.item.crafting.CraftingRecipenet.minecraftforge.fluids.FluidStackintbooleanmatches(net.minecraftforge.fluids.FluidStack fluid, net.minecraft.world.item.ItemStack boxStack, net.minecraft.world.Container craftingInventory, net.minecraft.world.level.Level level) Methods inherited from interface forestry.api.recipes.IForestryRecipe
assemble, canCraftInDimensions, getGroup, getId, getIngredients, getRemainingItems, getSerializer, getToastSymbol, getType, isSpecial, matchesMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getResultItem, isIncomplete
-
Method Details
-
getPackagingTime
int getPackagingTime()- Returns:
- Number of work cycles required to craft the recipe once.
-
getCraftingGridRecipe
net.minecraft.world.item.crafting.CraftingRecipe getCraftingGridRecipe()- Returns:
- the crafting grid recipe. The crafting recipe's getRecipeOutput() is used as the ICarpenterRecipe's output.
-
getBox
net.minecraft.world.item.crafting.Ingredient getBox()- Returns:
- the box required for this recipe. return empty stack if there is no required box. Examples of boxes are the Forestry cartons and crates.
-
getInputFluid
net.minecraftforge.fluids.FluidStack getInputFluid()- Returns:
- the fluid required for this recipe. return
FluidStack.EMPTYif there is no required fluid.
-
matches
boolean matches(net.minecraftforge.fluids.FluidStack fluid, net.minecraft.world.item.ItemStack boxStack, net.minecraft.world.Container craftingInventory, net.minecraft.world.level.Level level)
-