CEnchantBothMatterImpl

open class CEnchantBothMatterImpl @JvmOverloads constructor(val name: String, val candidate: Set<Material>, val enchantComponents: Set<CEnchantComponent>, val storedEnchantComponents: Set<CEnchantComponent>, val amount: Int = 1, val mass: Boolean = false, val predicates: Set<CMatterPredicate>? = CMatterImpl.defaultMatterPredicates()) : CEnchantMatter, CEnchantmentStoreMatter

A default CMatter, CEnchantMatter, CEnchantmentStoreMatter implemented class.

Parameters

name

matter name

candidate

matter candidate materials

amount

matter amount

mass

this matter is mass or not

predicates

if in checks, this matter requires to pass these all.

enchantComponents

enchant predicates for applied enchantments. set of CEnchantComponent.

storedEnchantComponents

enchant predicates for stored enchantments. set of CEnchantComponent.

Constructors

Link copied to clipboard
constructor(name: String, candidate: Set<Material>, enchantComponents: Set<CEnchantComponent>, storedEnchantComponents: Set<CEnchantComponent>, amount: Int = 1, mass: Boolean = false, predicates: Set<CMatterPredicate>? = CMatterImpl.defaultMatterPredicates())

Properties

Link copied to clipboard
open override val amount: Int
Link copied to clipboard
open override val candidate: Set<Material>
Link copied to clipboard
Link copied to clipboard
open override val mass: Boolean
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val predicates: Set<CMatterPredicate>?
Link copied to clipboard

Functions

Link copied to clipboard

returns this CMatter has some predicates or not.

Link copied to clipboard

Returns this CMatter is a valid or not.

Link copied to clipboard

Returns a merged result of all predicates run.