#723: Add Furnace#getRecipesUsed

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot 2022-02-15 18:48:12 +11:00
parent 2ee538ec02
commit 91ffd11c33

View file

@ -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.
*
* <b>Note:</b> 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<CookingRecipe<?>, Integer> getRecipesUsed();
@NotNull
@Override
public FurnaceInventory getInventory();