Skip to content

Commit 6803f6a

Browse files
committed
chore: >admonitions
1 parent 65610cc commit 6803f6a

File tree

1 file changed

+7
-1
lines changed
  • src/content/docs/paper/dev/api

1 file changed

+7
-1
lines changed

src/content/docs/paper/dev/api/pdc.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ item.editPersistentDataContainer(pdc -> {
5757
pdc.set(key, PersistentDataType.STRING, "I love Tacos!");
5858
});
5959
```
60+
6061
:::note
6162

6263
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)) {
9192
player.sendMessage(Component.text(value));
9293
}
9394
```
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.
99+
100+
:::
95101

96102
## Data types
97103

0 commit comments

Comments
 (0)