Deprecate API relating to menu title changes (#11309)

This commit is contained in:
Jake Potrebic 2024-08-25 11:56:17 -07:00
parent 43f2d628d5
commit 0481feec57

View file

@ -1538,6 +1538,27 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public ItemStack getCursor();
/**
@@ -0,0 +0,0 @@ public interface InventoryView {
* made using {@link #setTitle(String)}.
*
* @return the original title
+ * @deprecated changing the title is not supported
*/
@NotNull
+ @Deprecated(since = "1.21.1") // Paper
public String getOriginalTitle();
/**
@@ -0,0 +0,0 @@ public interface InventoryView {
* exception.
*
* @param title The new title.
+ * @deprecated changing the title is not supported. This method has
+ * poorly defined and broken behaviors. It should not be used.
*/
+ @Deprecated(since = "1.21.1") // Paper
public void setTitle(@NotNull String title);
}
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java