2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/crafting/RecipeBlasting.java
|
|
|
|
+++ b/net/minecraft/world/item/crafting/RecipeBlasting.java
|
2023-09-21 18:40:00 +02:00
|
|
|
@@ -3,6 +3,14 @@
|
2021-03-15 23:00:00 +01:00
|
|
|
import net.minecraft.world.item.ItemStack;
|
2021-06-11 07:00:00 +02:00
|
|
|
import net.minecraft.world.level.block.Blocks;
|
2019-04-23 04:00:00 +02:00
|
|
|
|
|
|
|
+// CraftBukkit start
|
2023-09-21 18:40:00 +02:00
|
|
|
+import org.bukkit.NamespacedKey;
|
2019-04-23 04:00:00 +02:00
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftBlastingRecipe;
|
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftItemStack;
|
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftRecipe;
|
|
|
|
+import org.bukkit.inventory.Recipe;
|
|
|
|
+// CraftBukkit end
|
|
|
|
+
|
|
|
|
public class RecipeBlasting extends RecipeCooking {
|
|
|
|
|
2023-09-21 18:40:00 +02:00
|
|
|
public RecipeBlasting(String s, CookingBookCategory cookingbookcategory, RecipeItemStack recipeitemstack, ItemStack itemstack, float f, int i) {
|
|
|
|
@@ -18,4 +26,17 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
public RecipeSerializer<?> getSerializer() {
|
2021-06-11 07:00:00 +02:00
|
|
|
return RecipeSerializer.BLASTING_RECIPE;
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ @Override
|
2023-09-21 18:40:00 +02:00
|
|
|
+ public Recipe toBukkitRecipe(NamespacedKey id) {
|
2019-04-23 04:00:00 +02:00
|
|
|
+ CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
|
|
|
|
+
|
2023-09-21 18:40:00 +02:00
|
|
|
+ CraftBlastingRecipe recipe = new CraftBlastingRecipe(id, result, CraftRecipe.toBukkit(this.ingredient), this.experience, this.cookingTime);
|
2019-04-23 04:00:00 +02:00
|
|
|
+ recipe.setGroup(this.group);
|
2022-12-07 17:00:00 +01:00
|
|
|
+ recipe.setCategory(CraftRecipe.getCategory(this.category()));
|
2019-04-23 04:00:00 +02:00
|
|
|
+
|
|
|
|
+ return recipe;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|