Matter

class Matter : CMatter

Air-containable CMatter implementation.

Use Matter.of to initialize.

Since

5.0.15

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val amount: Int

Required item count. Ignored when anyAmount is true. Must be 1 or greater.

Link copied to clipboard
open override val anyAmount: Boolean

If true, any input amount ≥ 1 is accepted regardless of amount. If false, input must have at least amount items.

Link copied to clipboard
open override val candidate: Set<Material>

Set of acceptable Material types for this slot.

Link copied to clipboard
open override val name: String

Name of this matter.

Link copied to clipboard
Link copied to clipboard
open override val predicates: List<CMatterPredicate>?

List of additional CMatterPredicate checks that run during slot matching. null or empty means no additional conditions.

Functions

Link copied to clipboard

returns this CMatter has some predicates or not.

Link copied to clipboard
open override fun isValidMatter(): Result<Unit>

Checks is valid or not.

Link copied to clipboard

Returns a merged result of all predicates run.