mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
41 lines
1.7 KiB
Diff
41 lines
1.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Thu, 27 Mar 2025 13:04:35 +0800
|
|
Subject: [PATCH] Support REI protocol
|
|
|
|
|
|
diff --git a/net/minecraft/world/item/crafting/SmithingTransformRecipe.java b/net/minecraft/world/item/crafting/SmithingTransformRecipe.java
|
|
index 9bc0a9c3577d63a0ad5489bfd4c07d5006245c5f..bb2e891539b7eb49dc7925630695149aa531f672 100644
|
|
--- a/net/minecraft/world/item/crafting/SmithingTransformRecipe.java
|
|
+++ b/net/minecraft/world/item/crafting/SmithingTransformRecipe.java
|
|
@@ -83,6 +83,12 @@ public class SmithingTransformRecipe implements SmithingRecipe {
|
|
);
|
|
}
|
|
|
|
+ // Leaves start - REI
|
|
+ public SlotDisplay getResult() {
|
|
+ return this.result.display();
|
|
+ }
|
|
+ // Leaves end - REI
|
|
+
|
|
// CraftBukkit start
|
|
@Override
|
|
public org.bukkit.inventory.Recipe toBukkitRecipe(org.bukkit.NamespacedKey id) {
|
|
diff --git a/net/minecraft/world/item/crafting/SmithingTrimRecipe.java b/net/minecraft/world/item/crafting/SmithingTrimRecipe.java
|
|
index c324896afc2ee28ebb4d426ce4a469ee847ce24d..d5b26ff7be916e07e1162536cb2ddf5674c82f46 100644
|
|
--- a/net/minecraft/world/item/crafting/SmithingTrimRecipe.java
|
|
+++ b/net/minecraft/world/item/crafting/SmithingTrimRecipe.java
|
|
@@ -85,6 +85,12 @@ public class SmithingTrimRecipe implements SmithingRecipe {
|
|
return Optional.of(this.addition);
|
|
}
|
|
|
|
+ // Leaves start
|
|
+ public Holder<TrimPattern> pattern() {
|
|
+ return pattern;
|
|
+ }
|
|
+ // Leaves end
|
|
+
|
|
@Override
|
|
public RecipeSerializer<SmithingTrimRecipe> getSerializer() {
|
|
return RecipeSerializer.SMITHING_TRIM;
|