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 override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
realSlotsWithInvType
Link copied to clipboard
open override fun realSlotsWithInvType(invType: InventoryType<T>): List<Int>
toString
Link copied to clipboard
open override fun toString(): String
withInvType
Link copied to clipboard
open override fun withInvType(invType: InventoryType<T>): List<InventorySlot>

Properties

inventorySlot
Link copied to clipboard
val inventorySlot: InventorySlot

Extensions

linTo
Link copied to clipboard

This range contains all slots having an index between the indeces of the two given slots.

infix fun <T : ForInventory> SingleInventorySlot<out T>.linTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T>
rectTo
Link copied to clipboard

This range contains all slots inside of a thought rectangle with the two given slots as two opposite corners of the rectangle.

infix fun <T : ForInventory> SingleInventorySlot<out T>.rectTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T>