Added Slots.All
This commit is contained in:
@@ -227,6 +227,10 @@ class InventoryCornerSlots<T : ForInventory> internal constructor(
|
||||
|
||||
}
|
||||
|
||||
class InventoryAllSlots<T : ForInventory> : InventorySlotCompound<T> {
|
||||
override fun withInvType(invType: GUIType<T>) = invType.dimensions.invSlots
|
||||
}
|
||||
|
||||
// SLOT TYPE SAFETY
|
||||
|
||||
// COLUMNS
|
||||
@@ -374,4 +378,7 @@ object Slots {
|
||||
val CornerTopLeft = InventoryCornerSlots<ForEveryInventory>(ifTopLeft = true)
|
||||
val CornerTopRight = InventoryCornerSlots<ForEveryInventory>(ifTopRight = true)
|
||||
|
||||
// ALL
|
||||
val All = InventoryAllSlots<ForEveryInventory>()
|
||||
|
||||
}
|
Reference in New Issue
Block a user