Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-22 14:28:09 +01:00
35 Zeilen
1.2 KiB
Diff
35 Zeilen
1.2 KiB
Diff
--- a/net/minecraft/server/FurnaceRecipe.java
|
|
+++ b/net/minecraft/server/FurnaceRecipe.java
|
|
@@ -1,5 +1,16 @@
|
|
package net.minecraft.server;
|
|
|
|
+// CraftBukkit start
|
|
+import java.util.ArrayList;
|
|
+import java.util.List;
|
|
+import org.bukkit.craftbukkit.inventory.CraftFurnaceRecipe;
|
|
+import org.bukkit.craftbukkit.inventory.CraftItemStack;
|
|
+import org.bukkit.craftbukkit.inventory.CraftRecipe;
|
|
+import org.bukkit.craftbukkit.util.CraftMagicNumbers;
|
|
+import org.bukkit.craftbukkit.util.CraftNamespacedKey;
|
|
+import org.bukkit.inventory.Recipe;
|
|
+// CraftBukkit end
|
|
+
|
|
public class FurnaceRecipe extends RecipeCooking {
|
|
|
|
public FurnaceRecipe(MinecraftKey minecraftkey, String s, RecipeItemStack recipeitemstack, ItemStack itemstack, float f, int i) {
|
|
@@ -10,4 +21,14 @@
|
|
public RecipeSerializer<?> getRecipeSerializer() {
|
|
return RecipeSerializer.p;
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public Recipe toBukkitRecipe() {
|
|
+ CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
|
|
+
|
|
+ CraftFurnaceRecipe recipe = new CraftFurnaceRecipe(CraftNamespacedKey.fromMinecraft(this.key), result, CraftRecipe.toBukkit(this.ingredient), this.experience, this.cookingTime);
|
|
+ recipe.setGroup(this.group);
|
|
+
|
|
+ return recipe;
|
|
+ }
|
|
}
|