2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/crafting/IRecipeComplex.java
|
|
|
|
+++ b/net/minecraft/world/item/crafting/IRecipeComplex.java
|
2023-09-21 18:40:00 +02:00
|
|
|
@@ -3,6 +3,11 @@
|
2024-04-23 17:15:00 +02:00
|
|
|
import net.minecraft.core.HolderLookup;
|
2023-09-21 18:40:00 +02:00
|
|
|
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 @@
|
2022-12-07 17:00:00 +01:00
|
|
|
public CraftingBookCategory category() {
|
|
|
|
return this.category;
|
2019-12-10 23:00:00 +01:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ @Override
|
2023-09-21 18:40:00 +02:00
|
|
|
+ public Recipe toBukkitRecipe(NamespacedKey id) {
|
|
|
|
+ return new org.bukkit.craftbukkit.inventory.CraftComplexRecipe(id, this);
|
2019-12-10 23:00:00 +01:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|