4.1 KiB
4.1 KiB
title
title |
---|
SingleInventorySlot - |
//KSpigot/net.axay.kspigot.inventory/SingleInventorySlot
SingleInventorySlot
[jvm] open class SingleInventorySlot<T : ForInventory> : InventorySlotCompound<T>
Constructors
Name | Summary |
---|---|
SingleInventorySlot | [jvm] fun SingleInventorySlot(row: Int, slotInRow: Int) |
Functions
Name | Summary |
---|---|
equals | [jvm] Content open operator override fun equals(other: Any?): Boolean |
hashCode | [jvm] Content open override fun hashCode(): Int |
realSlotsWithInvType | [jvm] Content open override fun realSlotsWithInvType(invType: InventoryType<T>): List<Int> |
toString | [jvm] Content open override fun toString(): String |
withInvType | [jvm] Content open override fun withInvType(invType: InventoryType<T>): List<InventorySlot> |
Properties
Name | Summary |
---|---|
inventorySlot | [jvm] val inventorySlot: InventorySlot |
Extensions
Name | Summary |
---|---|
linTo | [jvm] Brief description This range contains all slots having an index between the indeces of the two given slots. Content infix fun <T : ForInventory> SingleInventorySlot<out T>.linTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T> |
rectTo | [jvm] Brief description This range contains all slots inside of a thought rectangle with the two given slots as two opposite corners of the rectangle. Content infix fun <T : ForInventory> SingleInventorySlot<out T>.rectTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T> |