@@ -4713,10 +4713,10 @@ index 9bab73c3c2ca759b8e1c7d07d98cc593c961666a..f0c6943da3f783101ca647b75b3230fa
4713
4713
throw new UnsupportedOperationException("Not supported yet.");
4714
4714
}
4715
4715
diff --git a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
4716
- index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45c826908f 100644
4716
+ index 69d6de6e9618dd27f5ba73b931f8455912caf060..753a756525f6afea981dd0c2984e7a747d4d148b 100644
4717
4717
--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
4718
4718
+++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java
4719
- @@ -38,12 +38,62 @@ import org.jetbrains.annotations.Nullable;
4719
+ @@ -38,12 +38,65 @@ import org.jetbrains.annotations.Nullable;
4720
4720
*/
4721
4721
public interface ItemMeta extends Cloneable, ConfigurationSerializable, PersistentDataHolder {
4722
4722
@@ -4747,6 +4747,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4747
4747
/**
4748
4748
* Checks for existence of a display name.
4749
4749
*
4750
+ + * @apiNote This method is obsolete, use {@link #hasCustomName()} instead.
4750
4751
* @return true if this has a display name
4751
4752
*/
4752
4753
- boolean hasDisplayName();
@@ -4760,6 +4761,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4760
4761
+ *
4761
4762
+ * <p>Plugins should check that {@link #hasDisplayName()} returns <code>true</code> before calling this method.</p>
4762
4763
+ *
4764
+ + * @apiNote This method is obsolete, use {@link #customName()} instead.
4763
4765
+ * @return the display name
4764
4766
+ */
4765
4767
+ @ApiStatus.Obsolete(since = "1.21.4")
@@ -4771,6 +4773,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4771
4773
+ * Sets the display name.
4772
4774
+ *
4773
4775
+ * @param displayName the display name to set
4776
+ + * @apiNote This method is obsolete, use {@link #customName(Component)} instead.
4774
4777
+ */
4775
4778
+ @ApiStatus.Obsolete(since = "1.21.4")
4776
4779
+ default void displayName(final net.kyori.adventure.text.@Nullable Component displayName) {
@@ -4780,7 +4783,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4780
4783
4781
4784
/**
4782
4785
* Gets the display name that is set.
4783
- @@ -52,7 +102 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4786
+ @@ -52,7 +105 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4784
4787
* before calling this method.
4785
4788
*
4786
4789
* @return the display name that is set
@@ -4790,7 +4793,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4790
4793
@NotNull
4791
4794
String getDisplayName();
4792
4795
4793
- @@ -60,7 +112 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4796
+ @@ -60,7 +115 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4794
4797
* Sets the display name.
4795
4798
*
4796
4799
* @param name the name to set
@@ -4800,7 +4803,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4800
4803
void setDisplayName(@Nullable String name);
4801
4804
4802
4805
/**
4803
- @@ -73,6 +127 ,32 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4806
+ @@ -73,6 +130 ,32 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4804
4807
*/
4805
4808
boolean hasItemName();
4806
4809
@@ -4833,7 +4836,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4833
4836
/**
4834
4837
* Gets the item name that is set.
4835
4838
* <br>
4836
- @@ -83,7 +163 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4839
+ @@ -83,7 +166 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4837
4840
* calling this method.
4838
4841
*
4839
4842
* @return the item name that is set
@@ -4843,7 +4846,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4843
4846
@NotNull
4844
4847
String getItemName();
4845
4848
4846
- @@ -94,7 +176 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4849
+ @@ -94,7 +179 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4847
4850
* anvil, is not styled with italics, and does not show labels.
4848
4851
*
4849
4852
* @param name the name to set
@@ -4853,7 +4856,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4853
4856
void setItemName(@Nullable String name);
4854
4857
4855
4858
/**
4856
- @@ -135,6 +219 ,24 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4859
+ @@ -135,6 +222 ,24 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4857
4860
*/
4858
4861
boolean hasLore();
4859
4862
@@ -4878,7 +4881,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4878
4881
/**
4879
4882
* Gets the lore that is set.
4880
4883
* <p>
4881
- @@ -142,7 +244 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4884
+ @@ -142,7 +247 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4882
4885
* calling this method.
4883
4886
*
4884
4887
* @return a list of lore that is set
@@ -4888,7 +4891,7 @@ index 69d6de6e9618dd27f5ba73b931f8455912caf060..1181d62f13ad53a47bf3280f00f7ed45
4888
4891
@Nullable
4889
4892
List<String> getLore();
4890
4893
4891
- @@ -151,7 +255 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4894
+ @@ -151,7 +258 ,9 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable, Persiste
4892
4895
* Removes lore when given null.
4893
4896
*
4894
4897
* @param lore the lore that will be set
0 commit comments