Interface IPatternDetails.IInput

Enclosing interface:
IPatternDetails

public static interface IPatternDetails.IInput
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    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
    Optionally return a remaining key.
    boolean
    isValid(AEKey input, net.minecraft.world.level.Level level)
    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

      boolean isValid(AEKey input, net.minecraft.world.level.Level level)
      Check if the passed stack is a valid input.
    • getRemainingKey

      @Nullable @Nullable AEKey getRemainingKey(AEKey template)
      Optionally return a remaining key. This will generally be null for processing patterns, and return the corresponding slot of Recipe.getRemainingItems(C) for crafting patterns.