CPotionMatterImpl

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.

potionComponents

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)

Properties

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

Functions

Link copied to clipboard
open override fun asOne(): CPotionMatterImpl

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.