Added Slots.All

This commit is contained in:
bluefireoly
2020-10-30 18:01:42 +01:00
parent 51418b15a2
commit 9a3a226186

View File

@@ -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>()
}