ItemNumberConstraintGroup

abstract class ItemNumberConstraintGroup(val acceptableRange: IntRange, val priority: Int)

Defines an item constraint group.

For example if we had two constraints:

  • BLOCKS ->128..

  • TNT ->..64

Imagine a situation where the player has 125 TNT:

  • If the TNT was processed first it would be thrown out since the TNT limit says that we have too much TNT.

  • If the BLOCKS constraint was processed first, the TNT would be kept since the BLOCKS constraint is not yet satisfied.

Inheritors

Constructors

Link copied to clipboard
constructor(acceptableRange: IntRange, priority: Int)

Properties

Link copied to clipboard

The range of desired item amounts (which might be raw item counts, food saturation, etc.):

Link copied to clipboard

The priority of this constraint group. Lower values are processed first. It Affects the order in which items are processed.

Functions

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
abstract override fun hashCode(): Int