From 91ffd11c338d1c90ab18fffd824d3a1b0ec96d37 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 15 Feb 2022 18:48:12 +1100 Subject: [PATCH] #723: Add Furnace#getRecipesUsed By: Doc --- .../src/main/java/org/bukkit/block/Furnace.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/Furnace.java b/paper-api/src/main/java/org/bukkit/block/Furnace.java index c5a8c96fa2..ac3b24c5c9 100644 --- a/paper-api/src/main/java/org/bukkit/block/Furnace.java +++ b/paper-api/src/main/java/org/bukkit/block/Furnace.java @@ -1,5 +1,7 @@ package org.bukkit.block; +import java.util.Map; +import org.bukkit.inventory.CookingRecipe; import org.bukkit.inventory.FurnaceInventory; import org.jetbrains.annotations.NotNull; @@ -61,6 +63,17 @@ public interface Furnace extends Container { */ public void setCookTimeTotal(int cookTimeTotal); + /** + * Get the recipes used in this furnace. + * + * Note: These recipes used are reset when the result item is + * manually taken from the furnace. + * + * @return An immutable map with the recipes used and the times used + */ + @NotNull + public Map, Integer> getRecipesUsed(); + @NotNull @Override public FurnaceInventory getInventory();