diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/PrimitiveItemStack.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/PrimitiveItemStack.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/PrimitiveItemStack.kt b/src/main/java/at/hannibal2/skyhanni/utils/PrimitiveItemStack.kt index 2173fcc8f..52faaba30 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/PrimitiveItemStack.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/PrimitiveItemStack.kt @@ -9,7 +9,9 @@ data class PrimitiveItemStack(val internalName: NEUInternalName, val amount: Int fun createItem(): ItemStack = internalName.getItemStack().apply { stackSize = amount } - fun multiply(multiplier: Int): PrimitiveItemStack = PrimitiveItemStack(internalName, amount * multiplier) + operator fun times(multiplier: Int): PrimitiveItemStack = PrimitiveItemStack(internalName, amount * multiplier) + + operator fun plus(amount: Int): PrimitiveItemStack = PrimitiveItemStack(internalName, this.amount + amount) val itemName by lazy { internalName.itemName } |