Proxy ItemStack to CraftItemStack

This commit is contained in:
Jake Potrebic
2024-05-14 11:57:43 -07:00
parent c3d1a03428
commit c441981c54
6 changed files with 150 additions and 50 deletions

View File

@@ -669,6 +669,13 @@ public final class CraftMagicNumbers implements UnsafeValues {
}
// Paper end - lifecycle event API
// Paper start - proxy ItemStack
@Override
public org.bukkit.inventory.ItemStack createEmptyStack() {
return CraftItemStack.asCraftMirror(null);
}
// Paper end - proxy ItemStack
/**
* This helper class represents the different NBT Tags.
* <p>