VirtualItemSlot

class VirtualItemSlot(val itemStack: ItemStack, val slotType: ItemSlot.Type, val id: Int) : ItemSlot

Parameters

id

the id this slot is identified by. Two virtual slots that have the same id are considered equal.

Constructors

Link copied to clipboard
constructor(itemStack: ItemStack, slotType: ItemSlot.Type, id: Int)

Properties

Link copied to clipboard
val id: Int
Link copied to clipboard
open override val itemStack: ItemStack
Link copied to clipboard
open override val slotType: ItemSlot.Type

Functions

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

Used for example for slot click packets

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String