CPotion Matter Impl
data class CPotionMatterImpl(val name: String, val candidate: Set<Material>, val potionComponents: Set<CPotionComponent>, val amount: Int = 1, val mass: Boolean = false, val predicates: Set<CMatterPredicate>? = null) : CMatter, CPotionMatter
A default CMatter, CPotionMatter 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.
potion Components
potion predicates for contained. set of CPotionComponent.
Constructors
Link copied to clipboard
constructor(name: String, candidate: Set<Material>, potionComponents: Set<CPotionComponent>, amount: Int = 1, mass: Boolean = false, predicates: Set<CMatterPredicate>? = null)
Functions
Link copied to clipboard
returns a matter what is applied amount = 1
.
Link copied to clipboard
returns this CMatter has some predicates or not.
Link copied to clipboard
open fun predicatesResult(self: ItemStack, mapped: Map<CoordinateComponent, ItemStack>, recipe: CRecipe, crafterID: UUID): Boolean
returns a merged result of all predicates run.