API patches

This commit is contained in:
Nassim Jahnke 2022-12-07 17:46:46 +01:00
parent 476ef25d05
commit fd58a696cb
No known key found for this signature in database
GPG key ID: 6BE3B555EBC5982B
994 changed files with 584 additions and 581 deletions

View file

@ -9,10 +9,10 @@ Redirects some of upstream's APIs to these new methods to avoid
usage of magic values and the deprecated RecipeChoice#getItemStack
diff --git a/src/main/java/org/bukkit/inventory/ShapedRecipe.java b/src/main/java/org/bukkit/inventory/ShapedRecipe.java
index ad2ab6e97ccf6900d19f8bfbe08181d4c7743a99..ecf8cd763ae600c11be6385ea6240e4d2c08abc9 100644
index 7be830ea0a3b24c5cdfb8e6ab62cb2ee506a4026..baba8485587baab945add8bc91e91a1bfa27c84b 100644
--- a/src/main/java/org/bukkit/inventory/ShapedRecipe.java
+++ b/src/main/java/org/bukkit/inventory/ShapedRecipe.java
@@ -144,6 +144,13 @@ public class ShapedRecipe implements Recipe, Keyed {
@@ -146,6 +146,13 @@ public class ShapedRecipe implements Recipe, Keyed {
return this;
}
@ -27,10 +27,10 @@ index ad2ab6e97ccf6900d19f8bfbe08181d4c7743a99..ecf8cd763ae600c11be6385ea6240e4d
* Get a copy of the ingredients map.
*
diff --git a/src/main/java/org/bukkit/inventory/ShapelessRecipe.java b/src/main/java/org/bukkit/inventory/ShapelessRecipe.java
index 75b47c608d0a902e4ea5f03c395667f47dec8980..7485da0de3712619b8d89d0b21f60fe20dafad6b 100644
index 62675962d1b7882b953d2618aed1f363c046e97d..61b3a1b1d03fe6cdacb82b07e6c7197f56b4a1b3 100644
--- a/src/main/java/org/bukkit/inventory/ShapelessRecipe.java
+++ b/src/main/java/org/bukkit/inventory/ShapelessRecipe.java
@@ -142,6 +142,40 @@ public class ShapelessRecipe implements Recipe, Keyed {
@@ -144,6 +144,40 @@ public class ShapelessRecipe implements Recipe, Keyed {
return this;
}
@ -71,7 +71,7 @@ index 75b47c608d0a902e4ea5f03c395667f47dec8980..7485da0de3712619b8d89d0b21f60fe2
/**
* Removes an ingredient from the list.
*
@@ -165,7 +199,7 @@ public class ShapelessRecipe implements Recipe, Keyed {
@@ -167,7 +201,7 @@ public class ShapelessRecipe implements Recipe, Keyed {
*/
@NotNull
public ShapelessRecipe removeIngredient(@NotNull Material ingredient) {
@ -80,7 +80,7 @@ index 75b47c608d0a902e4ea5f03c395667f47dec8980..7485da0de3712619b8d89d0b21f60fe2
}
/**
@@ -192,7 +226,7 @@ public class ShapelessRecipe implements Recipe, Keyed {
@@ -194,7 +228,7 @@ public class ShapelessRecipe implements Recipe, Keyed {
*/
@NotNull
public ShapelessRecipe removeIngredient(int count, @NotNull Material ingredient) {