ItemSlot

sealed interface ItemSlot : ItemStackHolder

Represents an inventory slot (e.g. Hotbar Slot 0, OffHand, Chestslot 5, etc.)

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
abstract override val itemStack: ItemStack
Link copied to clipboard
abstract val slotType: ItemSlot.Type

Functions

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
abstract fun getIdForServer(screen: AbstractContainerScreen<*>?): Int?

Used for example for slot click packets

Link copied to clipboard
abstract override fun hashCode(): Int