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

11 lines
201 B
Kotlin
Raw Normal View History

2021-03-02 02:29:14 +00:00
package net.shadowfacts.phycon.util
import net.minecraft.item.ItemStack
/**
* @author shadowfacts
*/
fun ItemStack.copyWithCount(count: Int): ItemStack {
return copy().also { it.count = count }
}