Skip to content

Commit 65610cc

Browse files
chore: formatting
fix: javadoc links Co-authored-by: Matouš Kučera <[email protected]>
1 parent d95441d commit 65610cc

File tree

1 file changed

+6
-2
lines changed
  • src/content/docs/paper/dev/api

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ item.editPersistentDataContainer(pdc -> {
5757
pdc.set(key, PersistentDataType.STRING, "I love Tacos!");
5858
});
5959
```
60-
Note: The [`ItemStack#editPersistentDataContainer()`](jd: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.
61-
For 1.16.5+, there's the [`ItemStack#editMeta()`](jd:org.bukkit.inventory.ItemStack#editMeta(Consumer)) method though.
60+
:::note
61+
62+
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.
63+
For 1.16.5+, there's the [`ItemStack#editMeta()`](jd:paper:org.bukkit.inventory.ItemStack#editMeta(Consumer)) method though.
64+
65+
:::
6266

6367
:::note
6468

0 commit comments

Comments
 (0)