Package appeng.api.crafting
Interface IPatternDetails.IInput
- Enclosing interface:
IPatternDetails
public static interface IPatternDetails.IInput
-
Method Summary
Modifier and TypeMethodDescriptionlong
Multiplier for the inputs: how many possible inputs are necessary to craft this pattern.A list of possible inputs for this pattern: the first input is the primary input, others are just substitutes that will be used if available but won't be autocrafted.@Nullable AEKey
getRemainingKey
(AEKey template) Optionally return a remaining key.boolean
Check if the passed stack is a valid input.
-
Method Details
-
getPossibleInputs
GenericStack[] getPossibleInputs()A list of possible inputs for this pattern: the first input is the primary input, others are just substitutes that will be used if available but won't be autocrafted. For example you can return [1000 mb of water fluid, 1 bucket of water item] to use water if possible, but use stored buckets otherwise.The return array or any of its stacks must never be edited.
-
getMultiplier
long getMultiplier()Multiplier for the inputs: how many possible inputs are necessary to craft this pattern. -
isValid
Check if the passed stack is a valid input. -
getRemainingKey
Optionally return a remaining key. This will generally be null for processing patterns, and return the corresponding slot ofRecipe.getRemainingItems(T)
for crafting patterns.
-