Update to Minecraft 1.20.2

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-09-22 02:40:00 +10:00
parent 193398c0ff
commit 8a3c8cfcd4
238 changed files with 2448 additions and 2344 deletions

View File

@@ -1,14 +1,26 @@
--- a/net/minecraft/world/item/crafting/IRecipeComplex.java
+++ b/net/minecraft/world/item/crafting/IRecipeComplex.java
@@ -33,4 +33,11 @@
@@ -3,6 +3,11 @@
import net.minecraft.core.IRegistryCustom;
import net.minecraft.world.item.ItemStack;
+// CraftBukkit start
+import org.bukkit.NamespacedKey;
+import org.bukkit.inventory.Recipe;
+// CraftBukkit end
+
public abstract class IRecipeComplex implements RecipeCrafting {
private final CraftingBookCategory category;
@@ -25,4 +30,11 @@
public CraftingBookCategory category() {
return this.category;
}
+
+ // CraftBukkit start
+ @Override
+ public org.bukkit.inventory.Recipe toBukkitRecipe() {
+ return new org.bukkit.craftbukkit.inventory.CraftComplexRecipe(this);
+ public Recipe toBukkitRecipe(NamespacedKey id) {
+ return new org.bukkit.craftbukkit.inventory.CraftComplexRecipe(id, this);
+ }
+ // CraftBukkit end
}