of

fun of(matter: CMatter, includeAir: Boolean = false): GroupRecipe.Matter

Create Matter instance from CMatter.

Since

5.0.15

Parameters

matter

Base matter

includeAir

Add 'Material.AIR' to matter candidate or not. (Default false)

Throws

If specified matter already has been Matter

If found some invalid part from specified matter. From Matter.isValidMatter