Package-level declarations

Types

Link copied to clipboard
class CleanupPlanPlacementTemplate(val slotContentMap: Map<ItemSlot, ItemSortChoice>, val itemAmountConstraintProvider: (ItemFacet) -> MutableList<ItemConstraintInfo>, val isGreedy: Boolean, val forbiddenSlots: Set<ItemSlot>, val forbiddenSlotsToFill: Set<ItemSlot>)
Link copied to clipboard
Link copied to clipboard
data class InventorySwap(val from: ItemSlot, val to: ItemSlot, val priority: Priority) : Record
Link copied to clipboard
data class ItemAndComponents(val item: Item, val componentChanges: DataComponentPatch) : Record

Represents the "id" of ItemStack. ItemStacks with same Item and DataComponentPatch can be merged.

Link copied to clipboard
class ItemCategorization(availableItems: List<ItemSlot>)
Link copied to clipboard
data class ItemCategory(val type: ItemType, val subtype: Int) : Record
Link copied to clipboard
class ItemCategoryConstraintGroup(acceptableRange: IntRange, priority: Int, val category: ItemCategory) : ItemNumberConstraintGroup
Link copied to clipboard
class ItemConstraintInfo(val group: ItemNumberConstraintGroup, val amountAddedByItem: Int)
Link copied to clipboard
Link copied to clipboard
class ItemFunctionCategoryConstraintGroup(acceptableRange: IntRange, priority: Int, val function: ItemFunction) : ItemNumberConstraintGroup
Link copied to clipboard
abstract class ItemNumberConstraintGroup(val acceptableRange: IntRange, val priority: Int)

Defines an item constraint group.

Link copied to clipboard

After discovery phase (find all items, group them by their type, sort them by usefulness), this class tries to fit the given requirements (max blocks, required stack cound, etc.) and packs the given items in their target slots.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

InventoryCleaner module