CMatter

interface CMatter

This interface's implementing types can be used as materials for CRecipe.

Since

5.0.0

See also

Inheritors

Properties

Link copied to clipboard
abstract val amount: Int

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

Link copied to clipboard
abstract 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
abstract val candidate: Set<Material>

Set of acceptable Material types for this slot.

Link copied to clipboard
abstract val name: String

Name of this matter.

Link copied to clipboard

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

Returns this CMatter is a valid or not.

Link copied to clipboard

Returns a merged result of all predicates run.