Skip to content

Commit e8d04e2

Browse files
committed
Revert "feat: propose/showcase a notice tag"
This reverts commit 8150bfe.
1 parent 59cc02e commit e8d04e2

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ item.editPersistentDataContainer(pdc -> {
5454
});
5555
```
5656

57-
<details class="notice">
58-
<summary>Version Notice</summary>
57+
:::note
58+
59+
The [`ItemStack#editPersistentDataContainer()`](jd:paper:org.bukkit.inventory.ItemStack#editPersistentDataContainer(java.util.function.Consumer)) method on `ItemStack` is only available in 1.21.4+. For older versions, you need to access and modify the [`ItemMeta`](jd:paper:org.bukkit.inventory.meta.ItemMeta) instead.
60+
For 1.16.5+, there's the [`ItemStack#editMeta()`](jd:paper:org.bukkit.inventory.ItemStack#editMeta(java.util.function.Consumer)) method though.
5961

60-
The [`ItemStack#editPersistentDataContainer()`](jd:paper:org.bukkit.inventory.ItemStack#editPersistentDataContainer(java.util.function.Consumer)) method on `ItemStack` is only available in 1.21.4+. For older versions, you need to access and modify the [`ItemMeta`](jd:paper:org.bukkit.inventory.meta.ItemMeta) instead.
61-
For 1.16.5+, there's the [`ItemStack#editMeta()`](jd:paper:org.bukkit.inventory.ItemStack#editMeta(java.util.function.Consumer)) method though.
62-
</details>
62+
:::
6363

6464
:::note
6565

@@ -207,11 +207,11 @@ String value = pdcView.getOrDefault(key, PersistentDataType.STRING, "<null>");
207207
player.sendPlainMessage(value);
208208
```
209209

210-
<details class="notice">
211-
<summary>Version Notice</summary>
210+
:::note
211+
212+
PDC-view support for `ItemStack` was only introduced in 1.21.1. For older versions, you need to use the `ItemMeta` instead.
212213

213-
PDC-view support for `ItemStack` was only introduced in 1.21.1. For older versions, you need to use the `ItemMeta` instead.
214-
</details>
214+
:::
215215

216216
## Storing on different objects
217217

src/styles/custom.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,3 @@
102102
/* return to Starlight default */
103103
--sl-color-orange-low: hsl(var(--sl-hue-orange), 90%, 88%);
104104
}
105-
106-
.notice summary {
107-
padding: 0.45rem 0.6rem;
108-
border-radius: 6px;
109-
border-left: 4px solid var(--color-accent-6, #2563eb);
110-
background: var(--color-accent-2, #e8f4ff);
111-
}
112-
html[data-theme="dark"] details.notice summary {
113-
background: var(--color-accent-2, #0f1724);
114-
}

0 commit comments

Comments
 (0)