ArmorItemFacet

class ArmorItemFacet(itemSlot: ItemSlot, stacksToKeep: List<ItemSlot>, armorComparator: ArmorComparator) : ItemFacet

Parameters

stacksToKeep

armor items which should be kept since they might be strong in future situations

Constructors

Link copied to clipboard
constructor(itemSlot: ItemSlot, stacksToKeep: List<ItemSlot>, armorComparator: ArmorComparator)

Properties

Link copied to clipboard
open override val category: ItemCategory
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val itemStack: ItemStack
Link copied to clipboard
open val providedItemFunctions: List<ObjectIntPair<ItemFunction>>

Functions

Link copied to clipboard
open operator override fun compareTo(other: ItemFacet): Int
Link copied to clipboard
Link copied to clipboard
open override fun shouldKeep(): Boolean

Should this item be kept, even if it is not allocated to any slot?