is Valid Matter
Returns this CMatter is a valid or not.
CMatter's default implementation checks below conditions.
CMatter.candidate is not empty
CMatter.candidate does not contain Material.isAir and !Material.isItem
CMatter.amount is 1 or more
// (Usage)
val matter: CMatter = ~~~
matter.isValidMatter().exceptionOrNull()?.let { throw it }Content copied to clipboard
This is called from CRecipe.isValidRecipe.
Return
Result Result of check
Since
5.0.15