From 1fa51dd4696c75bf1693e75eefdad6794aa4a23f Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Thu, 23 Dec 2021 15:32:40 -0600 Subject: [PATCH] Expose isFuel and canSmelt methods to FurnaceInventory --- .../org/bukkit/inventory/FurnaceInventory.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/inventory/FurnaceInventory.java b/paper-api/src/main/java/org/bukkit/inventory/FurnaceInventory.java index 3f46259c1e..b9d4f05980 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/FurnaceInventory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/FurnaceInventory.java @@ -53,6 +53,24 @@ public interface FurnaceInventory extends Inventory { */ void setSmelting(@Nullable ItemStack stack); + // Paper start + /** + * Check if an item can be used as a fuel source in this furnace container + * + * @param item Item to check + * @return True if a valid fuel source + */ + public boolean isFuel(@Nullable ItemStack item); + + /** + * Check if an item can be smelted in this furnace container + * + * @param item Item to check + * @return True if can be smelt + */ + public boolean canSmelt(@Nullable ItemStack item); + // Paper end + @Override @Nullable Furnace getHolder();