single

fun single(material: Material): CMatterImpl

returns single candidate CMatterImpl.

its name is material's name. material.name.

// below 2 matters are same
val matter = CMatterImpl.single(Material.STONE)

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

Parameters

material

a candidate of this matter.