Skip to content

Commit e2da65c

Browse files
Deprecate API relating to menu title changes (#11309)
1 parent 5167856 commit e2da65c

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

patches/api/0166-Fix-Spigot-annotation-mistakes.patch

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ index bafef53c1d449135f1300c8c8fbb06f482ba67e1..f50aaddf8582be55fd4860ad374d8f22
890890
+@Deprecated(forRemoval = true) // Paper
891891
public interface LingeringPotion extends ThrownPotion { }
892892
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
893-
index b5ea7b60b47f056553a1cec766c57e0f75735633..ec35111df4b38fd55cc34f4baedebcf39c7fc92b 100644
893+
index 3f1b74af137868e502792c65ccd7ca74f3c3cb8c..c89ffb0f98dccd015e80e299142252fed3ece4a8 100644
894894
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
895895
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
896896
@@ -716,7 +716,9 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
@@ -1509,7 +1509,7 @@ index f1a48eab1a357ae64545e1f1dc941c383cff8707..466d1bd7089b76f48f953e1a51c611ec
15091509
/**
15101510
* Checks if the inventory contains any ItemStacks with the given
15111511
diff --git a/src/main/java/org/bukkit/inventory/InventoryView.java b/src/main/java/org/bukkit/inventory/InventoryView.java
1512-
index ebc14022c9ef9b0b3331ee53e96a32667e4762e0..2b2c5faabce1628bd2e82a840dc97fe79bb57856 100644
1512+
index ebc14022c9ef9b0b3331ee53e96a32667e4762e0..5c258b6077277575daa5d96349837bdf06f42500 100644
15131513
--- a/src/main/java/org/bukkit/inventory/InventoryView.java
15141514
+++ b/src/main/java/org/bukkit/inventory/InventoryView.java
15151515
@@ -123,9 +123,9 @@ public interface InventoryView {
@@ -1538,6 +1538,27 @@ index ebc14022c9ef9b0b3331ee53e96a32667e4762e0..2b2c5faabce1628bd2e82a840dc97fe7
15381538
public ItemStack getCursor();
15391539

15401540
/**
1541+
@@ -296,8 +296,10 @@ public interface InventoryView {
1542+
* made using {@link #setTitle(String)}.
1543+
*
1544+
* @return the original title
1545+
+ * @deprecated changing the title is not supported
1546+
*/
1547+
@NotNull
1548+
+ @Deprecated(since = "1.21.1") // Paper
1549+
public String getOriginalTitle();
1550+
1551+
/**
1552+
@@ -309,6 +311,9 @@ public interface InventoryView {
1553+
* exception.
1554+
*
1555+
* @param title The new title.
1556+
+ * @deprecated changing the title is not supported. This method has
1557+
+ * poorly defined and broken behaviors. It should not be used.
1558+
*/
1559+
+ @Deprecated(since = "1.21.1") // Paper
1560+
public void setTitle(@NotNull String title);
1561+
}
15411562
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
15421563
index 3d08beee52f2247db6f6e679206ed6a965fbf9a8..1b4f9b93860e58762ac28715adad5a67298b06d7 100644
15431564
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java

0 commit comments

Comments
 (0)