2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/crafting/RecipeBlasting.java
|
|
|
|
+++ b/net/minecraft/world/item/crafting/RecipeBlasting.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -4,6 +4,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
|
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftBlastingRecipe;
|
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftItemStack;
|
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftRecipe;
|
|
|
|
+import org.bukkit.craftbukkit.util.CraftNamespacedKey;
|
|
|
|
+import org.bukkit.inventory.Recipe;
|
|
|
|
+// CraftBukkit end
|
|
|
|
+
|
|
|
|
public class RecipeBlasting extends RecipeCooking {
|
|
|
|
|
|
|
|
public RecipeBlasting(MinecraftKey minecraftkey, String s, RecipeItemStack recipeitemstack, ItemStack itemstack, float f, int i) {
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -19,4 +27,16 @@
|
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
|
|
|
|
+ public Recipe toBukkitRecipe() {
|
|
|
|
+ CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
|
|
|
|
+
|
2021-06-11 07:00:00 +02:00
|
|
|
+ CraftBlastingRecipe recipe = new CraftBlastingRecipe(CraftNamespacedKey.fromMinecraft(this.id), result, CraftRecipe.toBukkit(this.ingredient), this.experience, this.cookingTime);
|
2019-04-23 04:00:00 +02:00
|
|
|
+ recipe.setGroup(this.group);
|
|
|
|
+
|
|
|
|
+ return recipe;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|