mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Deprecate API relating to menu title changes (#11309)
This commit is contained in:
parent
43f2d628d5
commit
0481feec57
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue