2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/crafting/RecipeStonecutting.java
|
|
|
|
+++ b/net/minecraft/world/item/crafting/RecipeStonecutting.java
|
2023-09-21 18:40:00 +02:00
|
|
|
@@ -5,6 +5,14 @@
|
2021-03-15 23:00:00 +01:00
|
|
|
import net.minecraft.world.level.World;
|
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.CraftItemStack;
|
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftRecipe;
|
|
|
|
+import org.bukkit.craftbukkit.inventory.CraftStonecuttingRecipe;
|
|
|
|
+import org.bukkit.inventory.Recipe;
|
|
|
|
+// CraftBukkit end
|
|
|
|
+
|
|
|
|
public class RecipeStonecutting extends RecipeSingleItem {
|
|
|
|
|
2023-09-21 18:40:00 +02:00
|
|
|
public RecipeStonecutting(String s, RecipeItemStack recipeitemstack, ItemStack itemstack) {
|
|
|
|
@@ -20,4 +28,16 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
public ItemStack getToastSymbol() {
|
2021-06-11 07:00:00 +02:00
|
|
|
return new ItemStack(Blocks.STONECUTTER);
|
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
|
|
|
+ CraftStonecuttingRecipe recipe = new CraftStonecuttingRecipe(id, result, CraftRecipe.toBukkit(this.ingredient));
|
2019-04-23 04:00:00 +02:00
|
|
|
+ recipe.setGroup(this.group);
|
|
|
|
+
|
|
|
|
+ return recipe;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|