diff options
author | Owen1212055 <[email protected]> | 2024-06-19 15:19:07 -0400 |
---|---|---|
committer | Owen1212055 <[email protected]> | 2024-11-18 14:50:38 -0500 |
commit | 501b7408780d5bb01100224d31427e9215d79d36 (patch) | |
tree | 6a7091336a0afb3ea8f326f7a4436005dbe9807f | |
parent | a3f92e809c21c9a618c16c7e3b46bc4cace92658 (diff) | |
download | Paper-501b7408780d5bb01100224d31427e9215d79d36.tar.gz Paper-501b7408780d5bb01100224d31427e9215d79d36.zip |
Update javadocs
-rw-r--r-- | patches/api/0480-WIP-DataComponent-API.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/patches/api/0480-WIP-DataComponent-API.patch b/patches/api/0480-WIP-DataComponent-API.patch index 46a7596471..3501e19350 100644 --- a/patches/api/0480-WIP-DataComponent-API.patch +++ b/patches/api/0480-WIP-DataComponent-API.patch @@ -138,10 +138,10 @@ index 0000000000000000000000000000000000000000..50d15b4e0ed5cd17fdc95476ee4650ef +} diff --git a/src/main/java/io/papermc/paper/component/DataComponentTypes.java b/src/main/java/io/papermc/paper/component/DataComponentTypes.java new file mode 100644 -index 0000000000000000000000000000000000000000..40274b25355e351c796d51a2077e87f382b0adb8 +index 0000000000000000000000000000000000000000..fad96b6f92afc963eea51b49d3663349c867687d --- /dev/null +++ b/src/main/java/io/papermc/paper/component/DataComponentTypes.java -@@ -0,0 +1,311 @@ +@@ -0,0 +1,313 @@ +package io.papermc.paper.component; + +import com.destroystokyo.paper.MaterialSetTag; @@ -226,10 +226,12 @@ index 0000000000000000000000000000000000000000..40274b25355e351c796d51a2077e87f3 + * When present, replaces default item name with contained chat component + * <p> + * Differences from {@link #CUSTOM_NAME}: ++ * <ul> + * <li>can't be changed or removed in Anvil</li> + * <li>is not styled with italics when displayed to player</li> + * <li>does not show labels where applicable + * (for example: banner markers, names in item frames)</li> ++ * </ul> + * @see #CUSTOM_NAME + */ + public static final DataComponentType.Valued<Component> ITEM_NAME = valued("item_name"); |