CMatterImpl

constructor(name: String, candidate: Set<Material>, amount: Int = 1, anyAmount: Boolean = false, predicates: Set<CMatterPredicate>? = defaultMatterPredicates())

Parameters

name

matter name

candidate

matter candidate materials

amount

matter amount (default = 1)

anyAmount

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)