PhysicalConnectivity/src/main/kotlin/net/shadowfacts/phycon/util/ItemStack.kt

11 lines
201 B
Kotlin

package net.shadowfacts.phycon.util
import net.minecraft.item.ItemStack
/**
* @author shadowfacts
*/
fun ItemStack.copyWithCount(count: Int): ItemStack {
return copy().also { it.count = count }
}