single
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,
anyAmount = false,
predicates = defaultMatterPredicates()
)Content copied to clipboard
Return
CMatterImpl Built matter
Parameters
material
A candidate of this matter.
Throws
Throws when material is invalid