multi

fun multi(vararg materials: Material): CMatterImpl

Returns multi candidate CMatterImpl.

// below 2 matters are same
val matter = CMatterImpl.multi(Material.STONE, Material.COBBLESTONE)

val matter = CMatterImpl(
name = "STONE-COBBLESTONE",
candidate = setOf(Material.STONE, Material.COBBLESTONE),
amount = 1,
mass = false,
predicates = null
)

Return

CMatterImpl Built matter

Parameters

materials

Candidate materials

Throws

Throws when materials is empty and contains invalid material