getTimes

open fun getTimes(map: Map<CoordinateComponent, ItemStack>, relation: MappedRelation, shift: Boolean, withoutMass: Boolean = true): Int

Returns the minimum craft count calculated from input item amounts and recipe requirements.

Return

Int Minimum craft count. Returns 1 if no constraining matter exists.

Since

5.0.10

Parameters

map

Input items mapping

relation

Coordinate relations in input items and recipe matters

shift

Use Shift-Key (Batch Crafting) or not

withoutMass

Exclude CMatter.anyAmount-marked matters from the calculation or not