CMatter Impl
open class CMatterImpl @JvmOverloads constructor(val name: String, val candidate: Set<Material>, val amount: Int = 1, val anyAmount: Boolean = false, val predicates: List<CMatterPredicate>? = defaultMatterPredicates()) : CMatter
A default CMatter implemented class.
Parameters
name
matter name
candidate
matter candidate materials
amount
matter amount (default = 1)
any Amount
If true, any input amount ≥ 1 is accepted regardless of amount. (default = false)
predicates
if in checks, this matter requires to pass these all. (default = Enchant, EnchantStorage, Potion checker contains)
Constructors
Functions
Link copied to clipboard
Returns the first CMatterPredicate that rejects ctx, or null when all of them pass.
Link copied to clipboard
returns this CMatter has some predicates or not.
Link copied to clipboard
Validates this CMatter.
Link copied to clipboard
Returns a merged result of all predicates run.