2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/item/crafting/RecipeSmoking.java
|
|
|
|
+++ b/net/minecraft/world/item/crafting/RecipeSmoking.java
|
|
|
|
@@ -3,6 +3,14 @@
|
|
|
|
import net.minecraft.resources.MinecraftKey;
|
|
|
|
import net.minecraft.world.item.ItemStack;
|
2019-04-23 12:00:00 +10:00
|
|
|
|
|
|
|
+// 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) {
|
2021-03-16 09:00:00 +11:00
|
|
|
@@ -13,4 +21,16 @@
|
2019-04-23 12:00:00 +10:00
|
|
|
public RecipeSerializer<?> getRecipeSerializer() {
|
2019-06-21 20:00:00 +10:00
|
|
|
return RecipeSerializer.r;
|
2019-04-23 12:00:00 +10:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // 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
|
|
|
|
}
|