blob: fd684950f79432f89c561dd9416339fb18d09054 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package at.hannibal2.skyhanni.utils
import at.hannibal2.skyhanni.utils.ItemUtils.itemName
import at.hannibal2.skyhanni.utils.NEUItems.getItemStack
data class PrimitiveItemStack(val internalName: NEUInternalName, val amount: Int) {
fun createItem() = internalName.getItemStack().apply { stackSize = amount }
val itemName by lazy { internalName.itemName }
companion object {
fun NEUInternalName.makePrimitiveStack(amount: Int) = PrimitiveItemStack(this, amount)
}
}
|