Skip to content

Commit 8e923c9

Browse files
committed
Small changes
1 parent c109797 commit 8e923c9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/paper/dev/api/data-component-api.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
slug: /dev/data-component-api
3-
description: A guide to the ItemStack DataComponent API.
3+
description: A guide to the ItemStack data component API.
44
---
55

66
# Data Component API
77

88
:::danger[Experimental]
99

10-
The DataComponent API is currently experimental, and is additionally subject to change across versions.
10+
The data component API is currently experimental, and is additionally subject to change across versions.
1111

1212
:::
1313

14-
The DataComponent API provides a version-specific interface for accessing and manipulating item data that is otherwise not representable by the `ItemMeta` API.
14+
The data component API provides a version-specific interface for accessing and manipulating item data that is otherwise not representable by the `ItemMeta` API.
1515
Through this API, you can read and modify properties of an item, so called data components, in a stable and object-oriented manner.
1616

1717

@@ -52,11 +52,11 @@ While `ItemMeta` is still very useful, it does not properly represent the protot
5252
### Key differences
5353

5454
#### Expanded data model
55-
The DataComponent API exposes a much broader and more detailed set of item properties than `ItemMeta`.
55+
The data component API exposes a much broader and more detailed set of item properties than `ItemMeta`.
5656
Data components allow the entire item to be modified in a fashion that better represents how Minecraft does item modifications.
5757

5858
#### Version-specific
59-
The DataComponent API is designed to adapt to version changes. The DataComponent API may experience breaking changes on version updates as Minecraft makes changes to components.
59+
The data component API is designed to adapt to version changes. The data component API may experience breaking changes on version updates as Minecraft makes changes to components.
6060
Backwards compatibility is not promised.
6161

6262
Because `ItemMeta` is represented in a different format, breaking changes made to components by Mojang may not result in breaking changes to `ItemMeta`.
@@ -72,7 +72,7 @@ durability or default attributes.
7272
Currently, `ItemMeta` represents a **snapshot** of an `ItemStack`'s patched map.
7373
This is expensive as it requires the entire patch to be read, even values that you may not be using.
7474

75-
The DataComponent API integrates directly with `ItemStack`. Although conceptually similar, the DataComponent API focuses on explicit, strongly typed data retrieval and updates without this additional overhead.
75+
The data component API integrates directly with `ItemStack`. Although conceptually similar, the data component API focuses on explicit, strongly typed data retrieval and updates without this additional overhead.
7676

7777
### When should I use `DataComponents` or `ItemMeta`?
7878

@@ -88,7 +88,7 @@ You would want to use data components if you:
8888

8989

9090
## Basic usage
91-
The DataComponent API will fetch values according to the behavior seen in game. So, if the patch removes the `minecraft:tool` component,
91+
The data component API will fetch values according to the behavior seen in game. So, if the patch removes the `minecraft:tool` component,
9292
trying to get that component will return null.
9393

9494
### Retrieving a prototype value

0 commit comments

Comments
 (0)