geforkt von Mirrors/Paper
Deprecate API relating to menu title changes (#11309)
Dieser Commit ist enthalten in:
Ursprung
43f2d628d5
Commit
0481feec57
@ -1538,6 +1538,27 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
public ItemStack getCursor();
|
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
|
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java
|
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren