Deprecate ItemStack#setType & add ItemStack#withType (#10290)
This commit is contained in:
@@ -7907,6 +7907,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return asNMSCopy(bukkit);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ public static net.minecraft.world.item.ItemStack getOrCloneOnMutation(ItemStack old, ItemStack newInstance) {
|
||||
+ return old == newInstance ? unwrap(old) : asNMSCopy(newInstance);
|
||||
+ }
|
||||
+ // Paper end - MC Utils
|
||||
+
|
||||
public static net.minecraft.world.item.ItemStack asNMSCopy(ItemStack original) {
|
||||
|
||||
Reference in New Issue
Block a user