diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 20a44e008e..0f0e381207 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1208,6 +1208,13 @@ public final class CraftServer implements Server { return results; } + @Override + public Recipe getRecipe(NamespacedKey recipeKey) { + Preconditions.checkArgument(recipeKey != null, "recipeKey == null"); + + return getServer().getCraftingManager().a(CraftNamespacedKey.toMinecraft(recipeKey)).map(IRecipe::toBukkitRecipe).orElse(null); + } + @Override public Iterator recipeIterator() { return new RecipeIterator();