SingleInventorySlot

open class SingleInventorySlot<T : ForInventory> : InventorySlotCompound<T>

Constructors

SingleInventorySlot
Link copied to clipboard
fun SingleInventorySlot(row: Int, slotInRow: Int)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
realSlotsWithInvType
Link copied to clipboard
open fun realSlotsWithInvType(invType: GUIType<T>): List<Int>
toString
Link copied to clipboard
open fun toString(): String
withInvType
Link copied to clipboard
open override fun withInvType(invType: GUIType<T>): List<InventorySlot>

Properties

inventorySlot
Link copied to clipboard
val inventorySlot: InventorySlot

Extensions

linTo
Link copied to clipboard
infix fun <T : ForInventory> SingleInventorySlot<out T>.linTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T>
This range contains all slots having an index between the indeces of the two given slots.
rectTo
Link copied to clipboard
infix fun <T : ForInventory> SingleInventorySlot<out T>.rectTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T>
This range contains all slots inside of a thought rectangle with the two given slots as two opposite corners of the rectangle.