Package forestry.api.core.machines
Interface ISqueezerRecipe
- All Superinterfaces:
IForestryRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
- All Known Subinterfaces:
ISqueezerContainerRecipe
-
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.item.crafting.Ingredient> intnet.minecraft.world.item.ItemStackfloatMethods inherited from interface forestry.api.core.machines.IForestryRecipe
assemble, canCraftInDimensions, getGroup, getId, getIngredients, getRemainingItems, getSerializer, getToastSymbol, getType, isSpecial, matchesMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getResultItem, isIncomplete, showNotification
-
Method Details
-
getInputs
List<net.minecraft.world.item.crafting.Ingredient> getInputs()- Returns:
- item stacks representing the required resources for one process. Stack size will be taken into account.
-
getProcessingTime
int getProcessingTime()- Returns:
- Number of work cycles required to squeeze one set of resources.
-
getRemnants
net.minecraft.world.item.ItemStack getRemnants()- Returns:
- Item stack representing the possible remnants from this recipe. (i.e. tin left over from tin cans)
-
getRemnantsChance
float getRemnantsChance()- Returns:
- Chance remnants will be produced by a single recipe cycle, from 0 to 1.
-
getFluidOutput
IFluidProduct getFluidOutput()- Returns:
- the
IFluidProductdescribing this recipe's fluid output. CallIFluidProduct.createFluidStack()for the representative/max stack (display + buffer reservation) orIFluidProduct.createRandomFluidStack(net.minecraft.util.RandomSource)for a single cycle's actual output.
-