diff options
-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"); |