11 lines
201 B
Kotlin
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 }
|
||
|
}
|