You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pdc.set(key, PersistentDataType.STRING, "I love Tacos!");
58
58
});
59
59
```
60
+
60
61
:::note
61
62
62
63
The [`ItemStack#editPersistentDataContainer()`](jd:paper:org.bukkit.inventory.ItemStack#editPersistentDataContainer()) method on `ItemStack` is only available in 1.21.4+. For older versions, you need to access and modify the `ItemMeta` instead.
@@ -91,7 +92,12 @@ if (containerView.has(key, PersistentDataType.STRING)) {
91
92
player.sendMessage(Component.text(value));
92
93
}
93
94
```
94
-
Note: The [`ItemStack#getPersistentDataContainer()`](jd:org.bukkit.inventory.ItemStack#getPersistentDataContainer()) method on `ItemStack` is only available in 1.21.1+. For older versions, you need to access and modify the `ItemMeta` instead.
95
+
96
+
:::note
97
+
98
+
The [`ItemStack#getPersistentDataContainer()`](jd:paper:org.bukkit.inventory.ItemStack#getPersistentDataContainer()) method on `ItemStack` is only available in 1.21.1+. For older versions, you need to access and modify the `ItemMeta` instead.
0 commit comments