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