Package forestry.api.core.machines
Interface ISqueezerContainerRecipe
- All Superinterfaces:
IForestryRecipe,ISqueezerRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
A container-draining squeezer recipe (e.g. squeezing a lava bucket for the empty bucket). These recipes have no
fluid output of their own: the inherited
ISqueezerRecipe.getFluidOutput() returns a display/gate-only product whose
createFluidStack() is empty. That product is never
serialized (this recipe's codec has no "output" field), so its
type() is unsupported — do not call it.-
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackintnet.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 forestry.api.core.machines.ISqueezerRecipe
getFluidOutput, getInputsMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getResultItem, isIncomplete, showNotification
-
Method Details
-
getEmptyContainer
net.minecraft.world.item.ItemStack getEmptyContainer() -
getProcessingTime
int getProcessingTime()- Specified by:
getProcessingTimein interfaceISqueezerRecipe- Returns:
- Number of work cycles required to squeeze one set of resources.
-
getRemnants
net.minecraft.world.item.ItemStack getRemnants()- Specified by:
getRemnantsin interfaceISqueezerRecipe- Returns:
- Item stack representing the possible remnants from this recipe. (i.e. tin left over from tin cans)
-
getRemnantsChance
float getRemnantsChance()- Specified by:
getRemnantsChancein interfaceISqueezerRecipe- Returns:
- Chance remnants will be produced by a single recipe cycle, from 0 to 1.
-